1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 03:19:44 +00:00
OpenMW/files/shaders/compatibility/sky.vert

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

22 lines
389 B
GLSL
Raw Normal View History

2021-10-24 00:53:38 +00:00
#version 120
2023-02-25 19:03:39 +00:00
#include "lib/core/vertex.h.glsl"
2023-02-25 19:03:39 +00:00
#include "lib/sky/passes.glsl"
2021-10-24 00:53:38 +00:00
uniform int pass;
varying vec4 passColor;
varying vec2 diffuseMapUV;
void main()
{
2023-02-25 19:03:39 +00:00
gl_Position = 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;
}