1
0
mirror of https://github.com/XProger/OpenLara.git synced 2025-08-17 02:24:07 +02:00

#23 fix water level estimation for reflections

This commit is contained in:
XProger
2018-04-18 02:34:53 +03:00
parent 8c6a198564
commit 34fdef5e47

View File

@@ -808,7 +808,7 @@ struct WaterCache {
Item &item = items[i];
if (!item.visible) continue;
float d = fabsf(item.pos.y - camera->eye.pos.y);
float d = fabsf(item.pos.x - camera->eye.pos.x) + fabsf(item.pos.z - camera->eye.pos.z);
if (d < waterDist) {
waterDist = d;