atm959

skyboxVertexShader.txt

Nov 23rd, 2016
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. #version 400
  2.  
  3. in vec3 position;
  4. out vec3 textureCoords;
  5.  
  6. uniform mat4 projectionMatrix;
  7. uniform mat4 viewMatrix;
  8.  
  9. void main(void){
  10. gl_Position = projectionMatrix * viewMatrix * vec4(position, 1.0);
  11. textureCoords = position;
  12. }
Add Comment
Please, Sign In to add comment