2024-04-08 19:20:45 -04:00
|
|
|
#version 120
|
|
|
|
|
2024-04-11 12:04:33 -04:00
|
|
|
#define pixelSize 2 // [1 2 4 8 16]
|
|
|
|
|
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-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
|
|
|
|
|
|
|
#ifdef tWarp
|
2024-04-11 14:59:46 -04:00
|
|
|
texture_warp();
|
2024-04-11 12:04:33 -04:00
|
|
|
#endif
|
2024-04-08 19:20:45 -04:00
|
|
|
}
|
|
|
|
|