From 35e67da08e3d214589968c19b4b2fb31d8e566cc Mon Sep 17 00:00:00 2001 From: raysan5 Date: Sun, 17 Oct 2021 21:02:18 +0200 Subject: UPDATED: examples to raylib 4.0 Some new examples added --- examples/web/shaders/shaders_multi_sample2d.data | 26 ------------------------ 1 file changed, 26 deletions(-) delete mode 100644 examples/web/shaders/shaders_multi_sample2d.data (limited to 'examples/web/shaders/shaders_multi_sample2d.data') diff --git a/examples/web/shaders/shaders_multi_sample2d.data b/examples/web/shaders/shaders_multi_sample2d.data deleted file mode 100644 index 4bda619..0000000 --- a/examples/web/shaders/shaders_multi_sample2d.data +++ /dev/null @@ -1,26 +0,0 @@ -#version 100 - -precision mediump float; - -// Input vertex attributes (from vertex shader) -varying vec2 fragTexCoord; -varying vec4 fragColor; - -// Input uniform values -uniform sampler2D texture0; -uniform sampler2D texture1; -uniform vec4 colDiffuse; - -uniform float divider; - -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); -} \ No newline at end of file -- cgit v1.2.3