aeon-199x/shaders/gbuffers_hand.vsh

33 lines
587 B
GLSL

#version 120
#define pixelSize 2 // [1 2 4 8 16]
#define itemFix
in int itemId;
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
if(itemId == 0) {
texture_warp();
}
}