Advertisement
Guest User

Untitled

a guest
Jul 9th, 2017
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Vertex Shader – file "minimal.vert"
  2.  
  3. #version 130 //GLSL version 1.3
  4.  
  5.  
  6. in  vec3 in_Position; //the input vertex's position
  7. in  vec3 in_Colour; //the input vertex's colour
  8.  
  9. out vec3 ex_Colour;
  10.  
  11. void main(void)
  12. {
  13.     ex_Colour = in_Colour; //pass through the colour
  14.     gl_Position = vec4(in_Position, 1.0); //pass through the position
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement