2024-04-08 19:20:45 -04:00
|
|
|
#version 120
|
|
|
|
|
2024-04-18 00:22:26 -04:00
|
|
|
#include "/module/common.glsl"
|
2024-04-11 12:04:33 -04:00
|
|
|
|
2024-04-08 19:20:45 -04:00
|
|
|
varying vec2 texcoord;
|
|
|
|
varying vec4 color;
|
2024-04-09 22:34:45 -04:00
|
|
|
varying vec2 lmcoord;
|
2024-04-08 19:20:45 -04:00
|
|
|
|
|
|
|
uniform mat4 gbufferModelView, gbufferModelViewInverse;
|
|
|
|
uniform float viewWidth, viewHeight;
|
|
|
|
|
2024-04-11 14:59:46 -04:00
|
|
|
#include "/module/vertex_warp.vert"
|
|
|
|
#include "/module/texture_warp.vert"
|
2024-04-18 16:23:06 -04:00
|
|
|
#include "/module/world.vert"
|
2024-04-11 14:59:46 -04:00
|
|
|
|
2024-04-08 19:20:45 -04:00
|
|
|
void main() {
|
|
|
|
texcoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
2024-04-09 22:34:45 -04:00
|
|
|
lmcoord = (gl_TextureMatrix[1] * gl_MultiTexCoord1).xy;
|
2024-04-08 19:20:45 -04:00
|
|
|
color = gl_Color;
|
|
|
|
|
2024-04-09 22:34:45 -04:00
|
|
|
#if vWarp > 0
|
2024-04-11 14:59:46 -04:00
|
|
|
vertex_warp();
|
2024-04-08 19:20:45 -04:00
|
|
|
#else
|
|
|
|
gl_Position = ftransform();
|
|
|
|
#endif
|
2024-04-11 12:04:33 -04:00
|
|
|
|
2024-04-15 17:20:57 -04:00
|
|
|
#ifndef NON_WORLD
|
2024-04-18 16:23:06 -04:00
|
|
|
#if worldCurvature > 0
|
|
|
|
world_curvature();
|
|
|
|
#endif
|
2024-04-14 17:37:44 -04:00
|
|
|
#endif
|
2024-04-21 22:02:02 -04:00
|
|
|
|
|
|
|
#ifndef NO_TWARP
|
|
|
|
#ifdef tWarp
|
|
|
|
texture_warp();
|
|
|
|
#endif
|
|
|
|
#endif
|
2024-04-08 19:20:45 -04:00
|
|
|
}
|
|
|
|
|