瀏覽代碼

Default value for WaterFogData plane distance

Set the default WaterFogData plane distance to be the same as global
bounds.  This solves an issue with the connection's control object
mistakenly thinking it is under a water plane in a debug build.
DavidWyand-GG 12 年之前
父節點
當前提交
55c91d29aa
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Engine/source/scene/fogStructs.h

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

@@ -59,7 +59,7 @@ struct WaterFogData
       wetDepth = 0.0f;
       wetDepth = 0.0f;
       wetDarkening = 0.0f;
       wetDarkening = 0.0f;
       color.set( 0.5f, 0.5f, 0.5f, 1.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;
       depthGradMax = 0.0f;
    }
    }
 };
 };