Browse Source

Merge pull request #520 from DavidWyand-GG/CausticsFix

Default value for WaterFogData plane distance
David Wyand 12 năm trước cách đây
mục cha
commit
edbd334ed3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Engine/source/scene/fogStructs.h

+ 1 - 1
Engine/source/scene/fogStructs.h

@@ -59,7 +59,7 @@ struct WaterFogData
       wetDepth = 0.0f;
       wetDarkening = 0.0f;
       color.set( 0.5f, 0.5f, 0.5f, 1.0f );
-      plane.set( 0.0f, 0.0f, 1.0f );
+      plane.set( 0.0f, 0.0f, 1.0f, 1e10 ); // Default to global bounds distance
       depthGradMax = 0.0f;
    }
 };