paysages3d/src/render/opengl/shaders/skybox.vert

11 lines
235 B
GLSL
Raw Normal View History

2015-12-07 22:32:55 +00:00
in highp vec4 vertex;
2013-12-21 22:48:54 +00:00
uniform highp mat4 viewMatrix;
uniform vec3 cameraLocation;
2015-12-07 22:32:55 +00:00
out vec3 unprojected;
2013-12-21 22:48:54 +00:00
void main(void)
{
unprojected = cameraLocation + vertex.xyz * 500.0;
gl_Position = viewMatrix * vec4(unprojected, 1.0);
}