mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-18 10:51:23 +02:00
fix water shading for rooms
This commit is contained in:
@@ -465,7 +465,10 @@ uniform vec4 uFogParams;
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef UNDERWATER
|
#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
|
#ifdef OPT_CAUSTICS
|
||||||
light += calcCaustics(normal) * uwSign;
|
light += calcCaustics(normal) * uwSign;
|
||||||
|
Reference in New Issue
Block a user