summaryrefslogtreecommitdiffhomepage
path: root/examples/shaders/shaders_multi_sample2d.data
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shaders/shaders_multi_sample2d.data')
-rw-r--r--examples/shaders/shaders_multi_sample2d.data4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/shaders/shaders_multi_sample2d.data b/examples/shaders/shaders_multi_sample2d.data
index c5c0cb7..a163a8a 100644
--- a/examples/shaders/shaders_multi_sample2d.data
+++ b/examples/shaders/shaders_multi_sample2d.data
@@ -18,9 +18,9 @@ void main()
// Texel color fetching from texture sampler
vec4 texelColor0 = texture2D(texture0, fragTexCoord);
vec4 texelColor1 = texture2D(texture1, fragTexCoord);
-
+
float x = fract(fragTexCoord.s);
float final = smoothstep(divider - 0.1, divider + 0.1, x);
-
+
gl_FragColor = mix(texelColor0, texelColor1, final);
}