1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-15 09:34:18 +02:00

fix water mask

This commit is contained in:
XProger
2018-09-29 19:54:23 +03:00
parent 1d232c68ca
commit c93d7221d9

View File

@@ -500,7 +500,7 @@ struct WaterCache {
hasWater = s.ceiling > st.ceiling;
if (s.ceiling == st.ceiling) {
vec3 p = vec3(float(r.info.x + x * 1024 + 512), float(posY), float(r.info.z + z * 1024 + 512));
hasWater = (s.ceiling * 256 - level->getCeiling(&s, p)) > 8.0f;
hasWater = (s.ceiling * 256 - level->getCeiling(&st, p)) > 8.0f;
}
}