summaryrefslogtreecommitdiff
path: root/Data
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@Gmail.com>2013-10-29 07:21:55 +0000
committerRyan Houdek <Sonicadvance1@Gmail.com>2013-10-29 07:24:16 +0000
commitc8d7db9767f540dc166eb820c32617c273238960 (patch)
tree6892e820e5c6659fe7a1c21feb84742ab7374d10 /Data
parent58d42f43e3e56e44d23acace33b5d5da27b82cb2 (diff)
Fix FXAA shader for OpenGL ES 3.
Diffstat (limited to 'Data')
-rw-r--r--Data/Sys/Shaders/FXAA.glsl8
1 files changed, 4 insertions, 4 deletions
diff --git a/Data/Sys/Shaders/FXAA.glsl b/Data/Sys/Shaders/FXAA.glsl
index 8cd0d6fba1..99caff7d03 100644
--- a/Data/Sys/Shaders/FXAA.glsl
+++ b/Data/Sys/Shaders/FXAA.glsl
@@ -55,11 +55,11 @@ vec4 applyFXAA(vec2 fragCoord, sampler2D tex)
dir * rcpDirMin)) * inverseVP;
vec3 rgbA = 0.5 * (
- texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +
- texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);
+ texture(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +
+ texture(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);
vec3 rgbB = rgbA * 0.5 + 0.25 * (
- texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +
- texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);
+ texture(tex, fragCoord * inverseVP + dir * -0.5).xyz +
+ texture(tex, fragCoord * inverseVP + dir * 0.5).xyz);
float lumaB = dot(rgbB, luma);
if ((lumaB < lumaMin) || (lumaB > lumaMax))