Created
December 15, 2009 16:34
-
-
Save bosmacs/257064 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uniform sampler2D tex0; | |
uniform sampler2D tex1; | |
void main() | |
{ | |
vec4 t0 = texture2D(tex0, gl_TexCoord[0].st); | |
vec4 t1 = texture2D(tex1, gl_TexCoord[0].st); | |
gl_FragColor = (1.0 - t1.a) * t0 + t1.a * t1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment