mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-16 18:14:05 +02:00
#23 fix water level estimation for reflections
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user