1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-07 12:54:00 +00:00
OpenMW/files/shaders/objects_vertex.glsl
scrawl a9ad1b09e2 Introduce ShaderManager & ShaderVisitor
Actual shaders still to be written.
2016-02-18 19:37:56 +01:00

15 lines
226 B
GLSL

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