mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-13 16:37:30 +00:00
a66fcb8448
The texture assignments are incorrect, but it's otherwise working.
12 lines
181 B
GLSL
12 lines
181 B
GLSL
uniform samplerCube sky;
|
|
|
|
varying vec3 direction;
|
|
|
|
void
|
|
main (void)
|
|
{
|
|
vec3 dir = direction;
|
|
|
|
dir *= inversesqrt (dot (dir, dir));
|
|
gl_FragColor = textureCube(sky, dir);
|
|
}
|