Guest User

Untitled

a guest
Jul 19th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.27 KB | None | 0 0
  1. #version 330
  2.  
  3. layout (location = 0) in vec3 position;
  4. layout (location = 1) in vec3 color;
  5.  
  6. out vec4 colOutput;
  7.  
  8. void main()
  9. {
  10.     colOutput = vec4(1.f);
  11.     colOutput.rgb = color.rgb;
  12.    
  13.     vec4 WCVertex = vec4(1.f);
  14.     WCVertex.xyz = position.xyz;
  15.     gl_Position = WCVertex;
  16. }
Add Comment
Please, Sign In to add comment