quakeforge/libs/video/renderer/glsl/quakeskb.frag
Bill Currie a66fcb8448 Implement skyboxes.
The texture assignments are incorrect, but it's otherwise working.
2012-01-12 11:05:34 +09:00

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);
}