Advertisement
Guest User

fragment.glsl

a guest
Jul 27th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. uniform sampler2D uSampler;
  2.  
  3. varying vec4 vColor;
  4. varying vec2 vTexCoord;
  5.  
  6. void main() {
  7. vec4 color = texture2D( uSampler, vec2( vTexCoord.s, vTexCoord.t ) ) * vec4( vColor.rgb, 1.0 );
  8. if ( color.a == 0 ) discard;
  9. gl_FragColor = vec4( color.rgb, vColor.a );
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement