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
8 lines
145 B
GLSL
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();
|
|
} |