mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-01 03:21:41 +00:00
21 lines
409 B
Plaintext
21 lines
409 B
Plaintext
|
#version 120
|
||
|
|
||
|
#include "skypasses.glsl"
|
||
|
|
||
|
uniform mat4 projectionMatrix;
|
||
|
uniform int pass;
|
||
|
|
||
|
varying vec4 passColor;
|
||
|
varying vec2 diffuseMapUV;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_Position = projectionMatrix * (gl_ModelViewMatrix * gl_Vertex);
|
||
|
passColor = gl_Color;
|
||
|
|
||
|
if (pass == PASS_CLOUDS)
|
||
|
diffuseMapUV = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
||
|
else
|
||
|
diffuseMapUV = gl_MultiTexCoord0.xy;
|
||
|
}
|