aeon-199x/shaders/gbuffers_basic.vsh

31 lines
555 B
V Shell
Raw Normal View History

#version 120
2024-04-11 12:04:33 -04:00
#define pixelSize 2 // [1 2 4 8 16]
varying vec2 texcoord;
varying vec4 color;
varying vec2 lmcoord;
uniform mat4 gbufferModelView, gbufferModelViewInverse;
uniform float viewWidth, viewHeight;
#include "/module/vertex_warp.vert"
#include "/module/texture_warp.vert"
void main() {
texcoord = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
lmcoord = (gl_TextureMatrix[1] * gl_MultiTexCoord1).xy;
color = gl_Color;
#if vWarp > 0
vertex_warp();
#else
gl_Position = ftransform();
#endif
2024-04-11 12:04:33 -04:00
#ifdef tWarp
texture_warp();
2024-04-11 12:04:33 -04:00
#endif
}