You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openmw/files/shaders/sky_vertex.glsl

22 lines
385 B
GLSL

#version 120
#include "openmw_vertex.h.glsl"
#include "skypasses.glsl"
uniform int pass;
varying vec4 passColor;
varying vec2 diffuseMapUV;
void main()
{
gl_Position = mw_modelToClip(gl_Vertex);
passColor = gl_Color;
if (pass == PASS_CLOUDS)
diffuseMapUV = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
else
diffuseMapUV = gl_MultiTexCoord0.xy;
}