skybox.vert.glsl 272 B

12345678910111213
  1. #version 150
  2. // This is just a simple vertex shader transforming the skybox
  3. in vec4 p3d_Vertex;
  4. uniform mat4 p3d_ModelViewProjectionMatrix;
  5. out vec3 skybox_pos;
  6. void main() {
  7. skybox_pos = p3d_Vertex.xyz;
  8. gl_Position = p3d_ModelViewProjectionMatrix * p3d_Vertex;
  9. }