diff options
author | 2017-01-04 17:44:46 -0800 | |
---|---|---|
committer | 2017-01-04 17:44:46 -0800 | |
commit | 2b95c8e50bbfa22320ca8ddd04d3d94052a5c4ed (patch) | |
tree | 7495be650b35a2c5e2f65e0a9ed4eb81debd838e /hlsl/phosphor.fx | |
parent | fad07814a01d724c0025aca39c771f13e74cff50 (diff) |
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.
Diffstat (limited to 'hlsl/phosphor.fx')
-rw-r--r-- | hlsl/phosphor.fx | 9 |
1 files changed, 1 insertions, 8 deletions
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); |