Ginger3D/bin/target/classes/shaders/skyboxVertexShader.glsl

15 lines
230 B
GLSL

#version 400
in vec3 position;
out vec3 textureCoords;
uniform mat4 projectionMatrix;
uniform mat4 viewMatrix;
void main(void){
gl_Position = projectionMatrix * viewMatrix * vec4(position, 1.0);
textureCoords = position;
}