Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Vertex Shader>
- #version 330 core
- in vec3 position;
- in vec2 texCoord;
- out vec2 texCoordV;
- void main(){
- gl_Position = vec4(position,1);
- texCoordV = texCoord;
- }
- <Fragment Shader>
- #version 330 core
- layout(location = 0) out vec4 colour;
- uniform sampler2D textureUnit;
- in vec2 texCoordV;
- void main(){
- colour = texture(textureUnit, texCoordV);
- }
Advertisement
Add Comment
Please, Sign In to add comment