mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
clang: constructor initialization order
while not a major issue per-se, the sheer number of times the engine has to jump back in memory and backfill data in a given class can add up. First run of... many.,
This commit is contained in:
parent
1131ed15df
commit
fbfd3ed8ed
64 changed files with 260 additions and 255 deletions
|
|
@ -179,23 +179,24 @@ ConsoleDocClass( WaterObject,
|
|||
WaterObject::WaterObject()
|
||||
: mViscosity( 1.0f ),
|
||||
mDensity( 1.0f ),
|
||||
mReflectivity( 0.5f ),
|
||||
mReflectNormalUp( true ),
|
||||
mLiquidType( "Water" ),
|
||||
mFresnelBias( 0.3f ),
|
||||
mFresnelPower( 6.0f ),
|
||||
mReflectNormalUp( true ),
|
||||
mReflectivity( 0.5f ),
|
||||
mDistortStartDist( 0.1f ),
|
||||
mDistortEndDist( 20.0f ),
|
||||
mDistortFullDepth( 3.5f ),
|
||||
mUndulateMaxDist(50.0f),
|
||||
mOverallFoamOpacity( 1.0f ),
|
||||
mFoamMaxDepth( 2.0f ),
|
||||
mFoamAmbientLerp( 0.5f ),
|
||||
mFoamRippleInfluence( 0.05f ),
|
||||
mUnderwaterPostFx( NULL ),
|
||||
mLiquidType( "Water" ),
|
||||
mFresnelBias( 0.3f ),
|
||||
mFresnelPower( 6.0f ),
|
||||
mClarity( 0.5f ),
|
||||
mBasicLighting( false ),
|
||||
mUnderwaterColor(9, 6, 5, 240),
|
||||
mUndulateMaxDist(50.0f),
|
||||
mMiscParamW( 0.0f ),
|
||||
mUnderwaterPostFx( NULL ),
|
||||
mBasicLighting( false ),
|
||||
mOverallWaveMagnitude( 1.0f ),
|
||||
mOverallRippleMagnitude( 0.1f ),
|
||||
mCubemap( NULL ),
|
||||
|
|
@ -203,8 +204,7 @@ WaterObject::WaterObject()
|
|||
mSpecularPower( 48.0f ),
|
||||
mSpecularColor( 1.0f, 1.0f, 1.0f, 1.0f ),
|
||||
mDepthGradientMax( 50.0f ),
|
||||
mEmissive( false ),
|
||||
mUnderwaterColor(9, 6, 5, 240)
|
||||
mEmissive( false )
|
||||
{
|
||||
mTypeMask = WaterObjectType;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue