uninitialized variables-environment and forrest

This commit is contained in:
AzaezelX 2020-05-11 14:56:04 -05:00
parent 2c1508c169
commit 1efb687867
20 changed files with 74 additions and 34 deletions

View file

@ -204,6 +204,7 @@ WaterObject::WaterObject()
mCubemap( NULL ),
mSpecularColor( 1.0f, 1.0f, 1.0f, 1.0f ),
mEmissive( false ),
mFullReflect(true),
mDepthGradientMax( 50.0f )
{
mTypeMask = WaterObjectType;
@ -248,6 +249,8 @@ WaterObject::WaterObject()
mSurfMatName[BasicUnderWaterMat] = "UnderWaterBasicMat";
dMemset( mMatInstances, 0, sizeof(mMatInstances) );
dMemset(mMatParamHandles, 0, sizeof(mMatParamHandles));
mUnderwater = false;
mWaterPos.set( 0,0,0 );
mWaterPlane.set( mWaterPos, Point3F(0,0,1) );
@ -1211,4 +1214,4 @@ S32 WaterObject::getMaterialIndex( const Point3F &camPos )
}
return matIdx;
}
}