summaryrefslogtreecommitdiffstatshomepage
path: root/src/osd/modules/render/d3d/d3dhlsl.h
diff options
context:
space:
mode:
author ImJezze <jezze@gmx.net>2015-12-25 20:02:47 +0100
committer ImJezze <jezze@gmx.net>2015-12-25 20:02:47 +0100
commit1b373eb812d11dfeb0fead627f7df4e827e27f8f (patch)
treea99b38395c8ba5a6706c9340bf9b3cb9430de571 /src/osd/modules/render/d3d/d3dhlsl.h
parent099f547d05856238f5879803c794ea3a233c5d55 (diff)
Extended Shadow Mask and Bloom functionality
- added shadow mask type option to choose between "Screen" and "Source" tile mode ("Screen" is the default as before) - added bloom type option to choose between "Addition" and "Darken" blend mode ("Addition" is the default as before) - the alpha channel of a shadow mask is now filled with the background color of the screen by the amount of the inverted alpha value - added monochrome-matrix.png which can be used in combination with "Source" tile mode and "Darken" blend mode to simulate a STN LCD, for example
Diffstat (limited to 'src/osd/modules/render/d3d/d3dhlsl.h')
-rw-r--r--src/osd/modules/render/d3d/d3dhlsl.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/modules/render/d3d/d3dhlsl.h b/src/osd/modules/render/d3d/d3dhlsl.h
index f591a2cf923..75d34a7e57a 100644
--- a/src/osd/modules/render/d3d/d3dhlsl.h
+++ b/src/osd/modules/render/d3d/d3dhlsl.h
@@ -195,6 +195,7 @@ struct hlsl_options
{
bool params_init;
bool params_dirty;
+ int shadow_mask_type;
float shadow_mask_alpha;
char shadow_mask_texture[1024];
int shadow_mask_count_x;
@@ -248,6 +249,7 @@ struct hlsl_options
float vector_length_ratio;
// Bloom
+ int bloom_type;
float bloom_scale;
float bloom_overdrive[3];
float bloom_level0_weight;
@@ -349,6 +351,8 @@ private:
cache_target * find_cache_target(UINT32 screen_index, int width, int height);
void remove_cache_target(cache_target *cache);
+ rgb_t apply_color_convolution(rgb_t color);
+
// Shader passes
int ntsc_pass(render_target *rt, int source_index, poly_info *poly, int vertnum);
int color_convolution_pass(render_target *rt, int source_index, poly_info *poly, int vertnum);