Guest User

shader.vert

a guest
Nov 15th, 2018
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 450
  2. #extension GL_ARB_separate_shader_objects : enable
  3.  
  4. layout(location = 0) in vec2 inPosition;
  5. layout(location = 1) in vec3 inColor;
  6.  
  7. layout(location = 0) out vec3 fragColor;
  8.  
  9. out gl_PerVertex {
  10.     vec4 gl_Position;
  11. };
  12.  
  13. void main() {
  14.     gl_Position = vec4(inPosition, 0.0, 1.0);
  15.     fragColor = inColor;
  16. }
Add Comment
Please, Sign In to add comment