Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 330 core
- /* Input from OpenGL */
- layout (location = 0) in vec3 position;
- layout (location = 1) in vec2 texCoord;
- /* Output to fragment shader */
- out vec2 vtxCoord;
- void main()
- {
- gl_Position = vec4(position.x, position.y, position.z, 1.0);
- vtxCoord = texCoord;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement