aeon-199x/shaders/gbuffers_basic.vsh

39 lines
693 B
GLSL

#version 120
#include "/module/common.glsl"
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"
#include "/module/world.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
#ifndef NON_WORLD
#if worldCurvature > 0
world_curvature();
#endif
#endif
#ifndef NO_TWARP
#ifdef tWarp
texture_warp();
#endif
#endif
}