quakeforge/libs/video/renderer/glsl/quakesky.vert
2012-01-12 21:23:39 +09:00

14 lines
206 B
GLSL

uniform mat4 mvp_mat;
uniform mat4 sky_mat;
attribute vec4 tlst;
attribute vec4 vertex;
varying vec3 direction;
void
main (void)
{
gl_Position = mvp_mat * vertex;
direction = (sky_mat * vertex).xyz;
}