mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 22:23:51 +00:00
Add alpha threshold for shadow casting.
This commit is contained in:
parent
474770eca8
commit
85b97d19d3
1 changed files with 4 additions and 0 deletions
|
@ -14,4 +14,8 @@ void main()
|
||||||
gl_FragData[0].a = texture2D(diffuseMap, diffuseMapUV).a * alphaPassthrough;
|
gl_FragData[0].a = texture2D(diffuseMap, diffuseMapUV).a * alphaPassthrough;
|
||||||
else
|
else
|
||||||
gl_FragData[0].a = alphaPassthrough;
|
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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue