mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-20 10:43:29 +00:00
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);
|
|
}
|