mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-16 18:14:05 +02:00
fix water mask
This commit is contained in:
@@ -500,7 +500,7 @@ struct WaterCache {
|
|||||||
hasWater = s.ceiling > st.ceiling;
|
hasWater = s.ceiling > st.ceiling;
|
||||||
if (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));
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user