[Scummvm-git-logs] scummvm-shaders master -> 83c4ee59ac11249eb8796d070fc05eef834271ee
lephilousophe
noreply at scummvm.org
Sat Jan 21 17:37:39 UTC 2023
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-shaders' repo located at https://github.com/scummvm/scummvm-shaders .
Summary:
83c4ee59ac SHADERS: Fix clamping issues
Commit: 83c4ee59ac11249eb8796d070fc05eef834271ee
https://github.com/scummvm/scummvm-shaders/commit/83c4ee59ac11249eb8796d070fc05eef834271ee
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-01-21T18:37:17+01:00
Commit Message:
SHADERS: Fix clamping issues
Changed paths:
base/crt/shaders/crt-consumer.glsl
base/crt/shaders/crt-guest-cgwg-curvature.glsl
base/crt/shaders/fakelottes.glsl
diff --git a/base/crt/shaders/crt-consumer.glsl b/base/crt/shaders/crt-consumer.glsl
index f59312a..ebc774d 100644
--- a/base/crt/shaders/crt-consumer.glsl
+++ b/base/crt/shaders/crt-consumer.glsl
@@ -536,7 +536,8 @@ void main()
if (inter >0.5 && InputSize.y >400.0 && fract(iTime)<0.5) res=res*0.95; else res;
res.rgb*= vign(lum);
}
-#if defined GL_ES
+#if 1
+ // ScummVM: Always apply the fix as we use a small texture unlike RetroArch
// hacky clamp fix for GLES
vec2 bordertest = (pC4);
if ( bordertest.x > 0.0001 && bordertest.x < 0.9999 && bordertest.y > 0.0001 && bordertest.y < 0.9999)
diff --git a/base/crt/shaders/crt-guest-cgwg-curvature.glsl b/base/crt/shaders/crt-guest-cgwg-curvature.glsl
index 08b1203..e6116b5 100644
--- a/base/crt/shaders/crt-guest-cgwg-curvature.glsl
+++ b/base/crt/shaders/crt-guest-cgwg-curvature.glsl
@@ -417,7 +417,8 @@ void main()
color = saturation(color);
color*= vign(lum);
- #if defined GL_ES
+ #if 1
+ // ScummVM: Always apply the fix as we use a small texture unlike RetroArch
// hacky clamp fix for GLES
vec2 bordertest = (pos);
if ( bordertest.x > 0.0001 && bordertest.x < 0.9999 && bordertest.y > 0.0001 && bordertest.y < 0.9999)
diff --git a/base/crt/shaders/fakelottes.glsl b/base/crt/shaders/fakelottes.glsl
index 810479b..dbc620a 100644
--- a/base/crt/shaders/fakelottes.glsl
+++ b/base/crt/shaders/fakelottes.glsl
@@ -261,7 +261,8 @@ void main()
res *= Mask(gl_FragCoord.xy * 1.0001);
#endif
-#if defined CURVATURE && defined GL_ES
+#if defined CURVATURE
+ // ScummVM: Always apply the fix as we use a small texture unlike RetroArch
// hacky clamp fix for GLES
vec2 bordertest = (pos);
if ( bordertest.x > 0.0001 && bordertest.x < 0.9999 && bordertest.y > 0.0001 && bordertest.y < 0.9999)
More information about the Scummvm-git-logs
mailing list