From f5e3032d98257ceaa7800251139f3c6df98f13e8 Mon Sep 17 00:00:00 2001 From: ImJezze Date: Sun, 7 Feb 2016 13:32:34 +0100 Subject: Improved Scanline Simulation - changed the amount of scanline darkness, a setting of 1.0 now becomes fully black (to get the same result as before half your current setting) - scanline height now depends on the brightness of the underlying color - the amount of the scanline brightness and overdrive now depends on the scanline darkness - renamed 'Scanline Screen Height' to 'Scanline Screen Scale' and 'Scanline Indiv. Height' to 'Scanline Height' --- src/osd/modules/render/d3d/d3dhlsl.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/osd/modules/render/d3d/d3dhlsl.cpp') diff --git a/src/osd/modules/render/d3d/d3dhlsl.cpp b/src/osd/modules/render/d3d/d3dhlsl.cpp index 43d6ec9bc48..9374233569a 100644 --- a/src/osd/modules/render/d3d/d3dhlsl.cpp +++ b/src/osd/modules/render/d3d/d3dhlsl.cpp @@ -2375,25 +2375,25 @@ static INT32 slider_scanline_alpha(running_machine &machine, void *arg, std::str static INT32 slider_scanline_scale(running_machine &machine, void *arg, std::string *str, INT32 newval) { ((hlsl_options*)arg)->params_dirty = true; - return slider_set(&(((hlsl_options*)arg)->scanline_scale), 0.05f, "%2.2f", str, newval); + return slider_set(&(((hlsl_options*)arg)->scanline_scale), 0.01f, "%2.2f", str, newval); } static INT32 slider_scanline_height(running_machine &machine, void *arg, std::string *str, INT32 newval) { ((hlsl_options*)arg)->params_dirty = true; - return slider_set(&(((hlsl_options*)arg)->scanline_height), 0.05f, "%2.2f", str, newval); + return slider_set(&(((hlsl_options*)arg)->scanline_height), 0.01f, "%2.2f", str, newval); } static INT32 slider_scanline_bright_scale(running_machine &machine, void *arg, std::string *str, INT32 newval) { ((hlsl_options*)arg)->params_dirty = true; - return slider_set(&(((hlsl_options*)arg)->scanline_bright_scale), 0.05f, "%2.2f", str, newval); + return slider_set(&(((hlsl_options*)arg)->scanline_bright_scale), 0.01f, "%2.2f", str, newval); } static INT32 slider_scanline_bright_offset(running_machine &machine, void *arg, std::string *str, INT32 newval) { ((hlsl_options*)arg)->params_dirty = true; - return slider_set(&(((hlsl_options*)arg)->scanline_bright_offset), 0.05f, "%2.2f", str, newval); + return slider_set(&(((hlsl_options*)arg)->scanline_bright_offset), 0.01f, "%2.2f", str, newval); } static INT32 slider_scanline_jitter(running_machine &machine, void *arg, std::string *str, INT32 newval) @@ -2879,10 +2879,10 @@ shaders::slider_desc shaders::s_sliders[] = { "Screen Reflection", 0, 0, 100, 1, 7, slider_reflection }, { "Image Vignetting", 0, 0, 100, 1, 7, slider_vignetting }, { "Scanline Darkness", 0, 0, 100, 1, 5, slider_scanline_alpha }, - { "Scanline Screen Height", 1, 20, 80, 1, 5, slider_scanline_scale }, - { "Scanline Indiv. Height", 1, 20, 80, 1, 5, slider_scanline_height }, - { "Scanline Brightness", 0, 20, 40, 1, 5, slider_scanline_bright_scale }, - { "Scanline Brightness Overdrive", 0, 0, 20, 1, 5, slider_scanline_bright_offset }, + { "Scanline Screen Scale", 0, 100, 400, 5, 5, slider_scanline_scale }, + { "Scanline Heigth", 0, 100, 400, 5, 5, slider_scanline_height }, + { "Scanline Brightness", 0, 100, 200, 1, 5, slider_scanline_bright_scale }, + { "Scanline Brightness Overdrive", 0, 0, 100, 1, 5, slider_scanline_bright_offset }, { "Scanline Jitter", 0, 0, 100, 1, 5, slider_scanline_jitter }, { "Hum Bar Darkness", 0, 0, 100, 1, 5, slider_hum_bar_alpha }, { "Defocus X", 0, 0, 100, 1, 7, slider_defocus_x }, -- cgit v1.2.3-70-g09d2