aeon-199x/shaders/gbuffers_basic.vsh

37 lines
664 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
#ifdef tWarp
texture_warp();
#endif
#ifndef NON_WORLD
#if worldCurvature > 0
world_curvature();
#endif
#endif
}