Advertisement
thecplusplusguy

OpenGL tutorial 23 - VBO 2 - vertexshader

Jul 30th, 2012
1,213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.36 KB | None | 0 0
  1. //http://www.youtube.com/user/thecplusplusguy
  2. //vertex shader for VBOs
  3. #version 120
  4. uniform vec3 color;
  5. varying vec3 color2;
  6. varying vec2 texcoord;
  7. attribute vec3 vertex;
  8. attribute vec3 inputcolor;
  9. attribute vec2 inputcolor2;
  10.  
  11. void main()
  12. {
  13.     gl_Position=gl_ModelViewProjectionMatrix*vec4(vertex,1.0);
  14.     color2=vec3(inputcolor);
  15.     texcoord=inputcolor2;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement