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.
18 lines
376 B
Plaintext
18 lines
376 B
Plaintext
6 years ago
|
#version 120
|
||
|
|
||
|
uniform sampler2D diffuseMap;
|
||
|
varying vec2 diffuseMapUV;
|
||
|
|
||
|
varying float alphaPassthrough;
|
||
|
|
||
|
uniform bool useDiffuseMapForShadowAlpha;
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
gl_FragData[0].rgb = vec3(1.0);
|
||
|
if (useDiffuseMapForShadowAlpha)
|
||
|
gl_FragData[0].a = texture2D(diffuseMap, diffuseMapUV).a * alphaPassthrough;
|
||
|
else
|
||
|
gl_FragData[0].a = alphaPassthrough;
|
||
|
}
|