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

Add alpha threshold for shadow casting.

This commit is contained in:
AnyOldName3 2018-10-17 14:02:26 +01:00
parent 474770eca8
commit 85b97d19d3

View File

@ -14,4 +14,8 @@ void main()
gl_FragData[0].a = texture2D(diffuseMap, diffuseMapUV).a * alphaPassthrough;
else
gl_FragData[0].a = alphaPassthrough;
// Prevent translucent things casting shadow (including the player using an invisibility effect)
if (gl_FragData[0].a < 0.5)
discard;
}