diff options
author | 2016-12-16 14:42:14 -0800 | |
---|---|---|
committer | 2016-12-29 14:57:31 -0800 | |
commit | 43d7ab36632d01856f2d272dbd831b27242f7cd7 (patch) | |
tree | 9e98061e6e1f36e7ec5bee86df1609cc1134df3d /src/osd/windows/winmain.h | |
parent | 0b6f935443d2fa048a9b2f9db8b00cf6cb8e7078 (diff) |
Implement LCD persistence shader.
hlsl/phosphor.fx: Do LCD persistence effect using boolean LCD.
LCD persistence is monochrome and thus does not have separate components
like phosphor persistence.
src/osd/modules/render/d3d/d3dhlsl.cpp: Add slider for LCD
games.
src/osd/modules/render/d3d/d3dhlsl.h: (BP) Add options for LCD
games.
src/osd/windows/winmain.cpp: (BP) Add options for LCD games.
src/osd/windows/winmain.h: (BP) Add options for LCD games.
Diffstat (limited to 'src/osd/windows/winmain.h')
-rw-r--r-- | src/osd/windows/winmain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osd/windows/winmain.h b/src/osd/windows/winmain.h index b939b115b83..a5fb11a8055 100644 --- a/src/osd/windows/winmain.h +++ b/src/osd/windows/winmain.h @@ -72,6 +72,7 @@ #define WINOPTION_PHOSPHOR_TAU "phosphor_tau" #define WINOPTION_PHOSPHOR_BETA "phosphor_beta" #define WINOPTION_PHOSPHOR_GAMMA "phosphor_gamma" +#define WINOPTION_LCD_PERSISTENCE "lcd_persistence" #define WINOPTION_SATURATION "saturation" #define WINOPTION_YIQ_ENABLE "yiq_enable" #define WINOPTION_YIQ_JITTER "yiq_jitter" @@ -204,6 +205,7 @@ public: const char* screen_phosphor_tau() const { return value(WINOPTION_PHOSPHOR_TAU); } const char* screen_phosphor_beta() const { return value(WINOPTION_PHOSPHOR_BETA); } const char* screen_phosphor_gamma() const { return value(WINOPTION_PHOSPHOR_GAMMA); } + float screen_lcd_persistence() const { return float_value(WINOPTION_LCD_PERSISTENCE); } float screen_saturation() const { return float_value(WINOPTION_SATURATION); } // full screen options |