netradiant-custom/setup/data/tools/gl/skybox_vp.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
145 B
GLSL

uniform vec3 u_view_origin;
void main()
{
gl_TexCoord[0] = vec4( ( gl_Vertex.xyz - u_view_origin ), 1 );
gl_Position = ftransform();
}