1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-18 19:01:45 +02:00

fix water shading for rooms

This commit is contained in:
XProger
2018-11-18 08:30:27 +03:00
parent 8f6b4945bc
commit 570c99915d

View File

@@ -465,7 +465,10 @@ uniform vec4 uFogParams;
#endif
#ifdef UNDERWATER
float uwSign = step(uParam.y, vCoord.y);
float uwSign = 1.0;
#ifdef TYPE_ENTITY
uwSign = step(uParam.y, vCoord.y);
#endif
#ifdef OPT_CAUSTICS
light += calcCaustics(normal) * uwSign;