Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #version 330 core
- layout (location = 0) in vec3 location_attrib;
- layout (location = 1) in vec2 texcoord_attrib;
- layout (location = 2) in vec3 normal_attrib;
- out vec3 location;
- out vec3 normal;
- void main()
- {
- normal = normal_attrib;
- gl_Position = vec4(location_attrib.x / 2, location_attrib.y / 2, location_attrib.z / 2, 1.0);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement