Advertisement
SrinjoySS01

Untitled

Oct 28th, 2020
1,507
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #type vertex
  2. #version 120
  3.     layout (location=0) in vec3 aPos;
  4.     layout (location=1) in vec4 aColour;
  5.  
  6.     out vec4 fColour;
  7.  
  8.     void main(){
  9.         fColour = aColour;
  10.         gl_Position = vec4(aPos, 1.0);
  11.     }
  12.  
  13. #type fragment
  14. #version 120
  15.     in vec4 fColour;
  16.     out vec4 colour;
  17.     void main(){
  18.         colour = fColour;
  19.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement