netradiant-custom/setup/data/tools/gl/skybox_fp.glsl
Garux d3e48d8c31 * render Q3 shader based skyboxes
logic: load 6 skybox textures when shader gets used by scene, don't unload dynamically, just on 'flush'
texture browser only uses normal preview image and doesn't trigger potentially heavy box loading
also fix R_ResampleTexture for [2+x upscaling
2022-07-18 10:05:19 +03:00

8 lines
196 B
GLSL

uniform samplerCube skybox;
void main()
{
//doing rotation/flip to fix skybox orientation
gl_FragColor = textureCube( skybox, vec3( -gl_TexCoord[0].y, gl_TexCoord[0].z, gl_TexCoord[0].x ) );
}