1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-28 18:18:52 +00:00
OpenMW/files/shaders/compatibility/sky.vert
2023-02-25 11:03:39 -08:00

22 lines
389 B
GLSL

#version 120
#include "lib/core/vertex.h.glsl"
#include "lib/sky/passes.glsl"
uniform int pass;
varying vec4 passColor;
varying vec2 diffuseMapUV;
void main()
{
gl_Position = modelToClip(gl_Vertex);
passColor = gl_Color;
if (pass == PASS_CLOUDS)
diffuseMapUV = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
else
diffuseMapUV = gl_MultiTexCoord0.xy;
}