From 55c91d29aa408cafededa9acc1ea96db968d34e0 Mon Sep 17 00:00:00 2001 From: DavidWyand-GG Date: Mon, 4 Nov 2013 13:24:16 -0500 Subject: [PATCH] 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. --- Engine/source/scene/fogStructs.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Engine/source/scene/fogStructs.h b/Engine/source/scene/fogStructs.h index dd003db4f..874d2542e 100644 --- a/Engine/source/scene/fogStructs.h +++ b/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; } };