Advertisement
thecplusplusguy

OpenGL tutorial 23 - VBO 2 - fragmentshader

Jul 30th, 2012
1,039
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. //http://www.youtube.com/user/thecplusplusguy
  2. //fragment shader for VBO's
  3. #version 120
  4. uniform sampler2D img;
  5. uniform vec3 color;
  6. varying vec3 color2;
  7. varying vec2 texcoord;
  8.  
  9. void main()
  10. {
  11.     vec3 texcolor=vec3(texture2D(img,texcoord));
  12.     gl_FragColor=vec4(texcolor,1.0);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement