mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 16:37:30 +00:00
17 lines
261 B
GLSL
17 lines
261 B
GLSL
uniform mat4 mvp_mat;
|
|
uniform mat4 sky_mat;
|
|
|
|
attribute vec4 vertex;
|
|
|
|
varying vec3 direction;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec3 dir;
|
|
float len;
|
|
vec2 offset = vec2 (1.0, 1.0);
|
|
|
|
gl_Position = mvp_mat * vertex;
|
|
direction = (sky_mat * vertex).xyz;
|
|
}
|