Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Vertex Shader – file "minimal.vert"
- #version 130 //GLSL version 1.3
- in vec3 in_Position; //the input vertex's position
- in vec3 in_Colour; //the input vertex's colour
- out vec3 ex_Colour;
- void main(void)
- {
- ex_Colour = in_Colour; //pass through the colour
- gl_Position = vec4(in_Position, 1.0); //pass through the position
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement