mirror of https://github.com/OpenMW/openmw.git
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.
23 lines
463 B
GLSL
23 lines
463 B
GLSL
3 years ago
|
#version 120
|
||
|
|
||
|
varying vec2 diffuseMapUV;
|
||
|
varying float alphaPassthrough;
|
||
|
|
||
2 years ago
|
#include "lib/core/vertex.h.glsl"
|
||
3 years ago
|
#include "vertexcolors.glsl"
|
||
|
|
||
|
void main()
|
||
|
{
|
||
2 years ago
|
gl_Position = modelToClip(gl_Vertex);
|
||
|
|
||
|
vec4 viewPos = modelToView(gl_Vertex);
|
||
|
gl_ClipVertex = viewPos;
|
||
3 years ago
|
|
||
|
if (colorMode == 2)
|
||
|
alphaPassthrough = gl_Color.a;
|
||
|
else
|
||
|
alphaPassthrough = gl_FrontMaterial.diffuse.a;
|
||
|
|
||
|
diffuseMapUV = (gl_TextureMatrix[0] * gl_MultiTexCoord0).xy;
|
||
|
}
|