Advertisement
PaleoCrafter

Untitled

May 6th, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Vertex
  2. #version 120
  3.  
  4. void main() {
  5.     gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
  6.     gl_TexCoord[0] = gl_MultiTexCoord0;
  7.     gl_FrontColor = gl_Color;
  8. }
  9.  
  10. #Fragment
  11. #version 120
  12.  
  13. uniform float alpha;
  14. uniform sampler2D tex;
  15.  
  16. void main() {
  17.     gl_FragColor = texture2D(tex, vec2(gl_TexCoord[0])) * gl_Color * vec4(1, 1, 1, alpha);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement