Guest User

Untitled

a guest
Dec 25th, 2013
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. <Vertex Shader>
  2. #version 330 core
  3.  
  4. in vec3 position;
  5. in vec2 texCoord;
  6.  
  7. out vec2 texCoordV;
  8.  
  9. void main(){
  10. gl_Position = vec4(position,1);
  11. texCoordV = texCoord;
  12. }
  13.  
  14.  
  15.  
  16. <Fragment Shader>
  17. #version 330 core
  18. layout(location = 0) out vec4 colour;
  19.  
  20. uniform sampler2D textureUnit;
  21.  
  22. in vec2 texCoordV;
  23.  
  24. void main(){
  25. colour = texture(textureUnit, texCoordV);
  26. }
Advertisement
Add Comment
Please, Sign In to add comment