Advertisement
daydrinking

Untitled

Apr 10th, 2024
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #version 150
  2.  
  3. in vec2 vertexPosition;
  4. in vec4 vertexColor;
  5. in vec2 vertexUV;
  6.  
  7. out vec2 fragmentPosition;
  8. out vec4 fragmentColor;
  9. out vec2 fragmentUV;
  10.  
  11. uniform mat4 projection;
  12.  
  13. void main () {
  14.     gl_Position.xy = (projection * vec4 (vertexPosition, 0.0, 1.0)).xy;
  15.     gl_Position.z = 0.0;
  16.     gl_Position.w = 1.0;
  17.  
  18.     fragmentPosition = vertexPosition;
  19.     fragmentColor = vertexColor;
  20.     fragmentUV = vec2 (vertexUV.x, 1.0 - vertexUV.y);
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement