double-hit-balls/assets/transparency.fragment

10 lines
259 B
Plaintext
Raw Normal View History

precision mediump float;
uniform sampler2D Texture;
uniform sampler2D TransparencyMask;
varying vec2 texCoord;
void main() {
vec4 color = texture2D(Texture,texCoord).rgba;
gl_FragColor = vec4(color.rgb, texture2D(TransparencyMask, texCoord).a);
}