1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-15 15:49:56 +00:00
openmw-tes3mp/files/shaders/objects_vertex.glsl
2016-02-18 19:37:57 +01:00

17 lines
275 B
GLSL

#version 120
#if @diffuseMap
varying vec2 diffuseMapUV;
#endif
varying float depth;
void main(void)
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
depth = gl_Position.z;
#if @diffuseMap
diffuseMapUV = gl_MultiTexCoord@diffuseMapUV.xy;
#endif
}