openclonk/planet/Objects.ocd/normal_map_vertex.glsl

22 lines
243 B
GLSL

#ifndef OPENCLONK
#define slice(x)
varying vec2 texcoord;
void main()
{
#endif
slice(texcoord)
{
texcoord = gl_MultiTexCoord0.xy;
}
slice(position)
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
}
#ifndef OPENCLONK
}
#endif