Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #type vertex
- #version 120
- layout (location=0) in vec3 aPos;
- layout (location=1) in vec4 aColour;
- out vec4 fColour;
- void main(){
- fColour = aColour;
- gl_Position = vec4(aPos, 1.0);
- }
- #type fragment
- #version 120
- in vec4 fColour;
- out vec4 colour;
- void main(){
- colour = fColour;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement