diff options
author | 2015-12-25 20:02:47 +0100 | |
---|---|---|
committer | 2015-12-25 20:02:47 +0100 | |
commit | 1b373eb812d11dfeb0fead627f7df4e827e27f8f (patch) | |
tree | a99b38395c8ba5a6706c9340bf9b3cb9430de571 /src/osd/windows/winmain.h | |
parent | 099f547d05856238f5879803c794ea3a233c5d55 (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/windows/winmain.h')
-rw-r--r-- | src/osd/windows/winmain.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/osd/windows/winmain.h b/src/osd/windows/winmain.h index 4c15cd1cbf6..1e060a2b6f1 100644 --- a/src/osd/windows/winmain.h +++ b/src/osd/windows/winmain.h @@ -36,6 +36,7 @@ #define WINOPTION_HLSL_WRITE "hlsl_write" #define WINOPTION_HLSL_SNAP_WIDTH "hlsl_snap_width" #define WINOPTION_HLSL_SNAP_HEIGHT "hlsl_snap_height" +#define WINOPTION_SHADOW_MASK_TYPE "shadow_mask_type" #define WINOPTION_SHADOW_MASK_ALPHA "shadow_mask_alpha" #define WINOPTION_SHADOW_MASK_TEXTURE "shadow_mask_texture" #define WINOPTION_SHADOW_MASK_COUNT_X "shadow_mask_x_count" @@ -84,6 +85,7 @@ #define WINOPTION_VECTOR_LENGTH_SCALE "vector_length_scale" #define WINOPTION_VECTOR_LENGTH_RATIO "vector_length_ratio" #define WINOPTION_VECTOR_TIME_PERIOD "vector_time_period" +#define WINOPTION_BLOOM_TYPE "bloom_type" #define WINOPTION_BLOOM_SCALE "bloom_scale" #define WINOPTION_BLOOM_OVERDRIVE "bloom_overdrive" #define WINOPTION_BLOOM_LEVEL0_WEIGHT "bloom_lvl0_weight" @@ -138,6 +140,7 @@ public: int d3d_hlsl_prescale_y() const { return int_value(WINOPTION_HLSL_PRESCALE_Y); } int d3d_snap_width() const { return int_value(WINOPTION_HLSL_SNAP_WIDTH); } int d3d_snap_height() const { return int_value(WINOPTION_HLSL_SNAP_HEIGHT); } + int screen_shadow_mask_type() const { return int_value(WINOPTION_SHADOW_MASK_TYPE); } float screen_shadow_mask_alpha() const { return float_value(WINOPTION_SHADOW_MASK_ALPHA); } const char *screen_shadow_mask_texture() const { return value(WINOPTION_SHADOW_MASK_TEXTURE); } int screen_shadow_mask_count_x() const { return int_value(WINOPTION_SHADOW_MASK_COUNT_X); } @@ -180,6 +183,7 @@ public: float screen_vector_length_scale() const { return float_value(WINOPTION_VECTOR_LENGTH_SCALE); } float screen_vector_length_ratio() const { return float_value(WINOPTION_VECTOR_LENGTH_RATIO); } float screen_vector_time_period() const { return float_value(WINOPTION_VECTOR_TIME_PERIOD); } + int screen_bloom_type() const { return int_value(WINOPTION_BLOOM_TYPE); } float screen_bloom_scale() const { return float_value(WINOPTION_BLOOM_SCALE); } const char *screen_bloom_overdrive() const { return value(WINOPTION_BLOOM_OVERDRIVE); } float screen_bloom_lvl0_weight() const { return float_value(WINOPTION_BLOOM_LEVEL0_WEIGHT); } |