quakeforge/libs/video/renderer/glsl/quakesky.vert
Bill Currie 8bcef272e6 Render the id skys :)
Wow... smooth.
2012-01-11 21:26:12 +09:00

15 lines
224 B
GLSL

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