SHARE
TWEET

Untitled

a guest Apr 10th, 2019 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 330
  2.  
  3.  
  4. uniform sampler2D texture0;
  5. uniform float particleAlpha;
  6.  
  7. in float age;
  8. in vec4 position;
  9.  
  10. out vec4 outColor;
  11.  
  12. void main()
  13. {
  14.     if (length(position) > 8 || length(position) < 1)
  15.         discard;
  16.  
  17.     //outColor = vec4(0.0, 0.0, 0.0, particleAlpha);
  18.         outColor = texture(texture0, gl_PointCoord);
  19.         outColor *= vec4(1.0, 1.0, 1.0, particleAlpha);
  20.     //outColor.a = 1 - outColor.r * outColor.g * outColor.b;
  21.     //outColor.a *= 1 - age;
  22. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top