Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- uniform sampler2D uSampler;
- varying vec4 vColor;
- varying vec2 vTexCoord;
- void main() {
- vec4 color = texture2D( uSampler, vec2( vTexCoord.s, vTexCoord.t ) ) * vec4( vColor.rgb, 1.0 );
- if ( color.a == 0 ) discard;
- gl_FragColor = vec4( color.rgb, vColor.a );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement