From 2b95c8e50bbfa22320ca8ddd04d3d94052a5c4ed Mon Sep 17 00:00:00 2001 From: "Westley M. Martinez" Date: Wed, 4 Jan 2017 17:44:46 -0800 Subject: Change cached texture format to floating point. hlsl/phosphor.fx: Remove hacks ini/presets/raster.ini, ini/presets/vector-mono.ini, ini/presets/vector.ini: Tweak presets src/osd/modules/render/d3d/d3dcomm.h, src/osd/modules/render/d3d/d3dhlsl.cpp, src/osd/modules/render/drawd3d.cpp: Change cache texture format to floating point for precise for phosphor and ghosting shaders. --- hlsl/phosphor.fx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'hlsl') diff --git a/hlsl/phosphor.fx b/hlsl/phosphor.fx index 2505b27e17f..e7f585a1f2f 100644 --- a/hlsl/phosphor.fx +++ b/hlsl/phosphor.fx @@ -101,8 +101,6 @@ uniform float3 TimeConstant = { 0.0f, 0.0f, 0.0f }; uniform float3 Beta = { 0.0f, 0.0f, 0.0f }; static const float TAU_FACTOR = 0.4342944819; static const float GAMMA_INV_FACTOR = TAU_FACTOR / 100; -// sRGB half-step for small intensities -float THRESHOLD = 0.5f / 255.0f / 12.92f; float4 ps_main(PS_INPUT Input) : COLOR { @@ -137,12 +135,7 @@ float4 ps_main(PS_INPUT Input) : COLOR b = pow(gamma.b * DeltaTime + pow(1 / b, 1 / Beta.b), -Beta.b); } - // Prevent burn-in - if (DeltaTime > 0.0f) { - r = max(0.0f, r - THRESHOLD); - g = max(0.0f, g - THRESHOLD); - b = max(0.0f, b - THRESHOLD); - } + r = max(CurrPix.r, r); g = max(CurrPix.g, g); b = max(CurrPix.b, b); -- cgit v1.2.3-70-g09d2