1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-01 03:21:41 +00:00
OpenMW/files/shaders/sky_vertex.glsl

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
385 B
Plaintext
Raw Normal View History

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