mirror of
https://github.com/XProger/OpenLara.git
synced 2025-08-17 18:36:43 +02:00
#23 fix water level estimation for reflections
This commit is contained in:
@@ -808,7 +808,7 @@ struct WaterCache {
|
|||||||
Item &item = items[i];
|
Item &item = items[i];
|
||||||
if (!item.visible) continue;
|
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) {
|
if (d < waterDist) {
|
||||||
waterDist = d;
|
waterDist = d;
|
||||||
|
Reference in New Issue
Block a user