1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-04 02:41:19 +00:00
OpenMW/files/shaders/objects_vertex.glsl

18 lines
275 B
Plaintext
Raw Normal View History

#version 120
#if @diffuseMap
varying vec2 diffuseMapUV;
#endif
2016-02-16 21:32:59 +00:00
varying float depth;
void main(void)
{
gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;
2016-02-16 21:32:59 +00:00
depth = gl_Position.z;
#if @diffuseMap
diffuseMapUV = gl_MultiTexCoord@diffuseMapUV.xy;
#endif
}