diff options
Diffstat (limited to 'progs/glsl/multitex.frag')
-rw-r--r-- | progs/glsl/multitex.frag | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/progs/glsl/multitex.frag b/progs/glsl/multitex.frag deleted file mode 100644 index a2633ceba75..00000000000 --- a/progs/glsl/multitex.frag +++ /dev/null @@ -1,15 +0,0 @@ -// Multi-texture fragment shader -// Brian Paul - -// Composite second texture over first. -// We're assuming the 2nd texture has a meaningful alpha channel. - -uniform sampler2D tex1; -uniform sampler2D tex2; - -void main() -{ - vec4 t1 = texture2D(tex1, gl_TexCoord[0].xy); - vec4 t2 = texture2D(tex2, gl_TexCoord[1].xy); - gl_FragColor = mix(t1, t2, t2.w); -} |