Skip to content

Instantly share code, notes, and snippets.

@bosmacs
Created December 15, 2009 16:34
Show Gist options
  • Save bosmacs/257064 to your computer and use it in GitHub Desktop.
Save bosmacs/257064 to your computer and use it in GitHub Desktop.
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