mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 11:43:49 +00:00
Fix member vars left uninitialized in constructors
This commit is contained in:
parent
3fe0fe1b92
commit
0ffd7f5620
23 changed files with 68 additions and 19 deletions
|
|
@ -73,15 +73,27 @@ U32 CloudLayer::smVertCount = smVertStride * smVertStride;
|
|||
U32 CloudLayer::smTriangleCount = smStrideMinusOne * smStrideMinusOne * 2;
|
||||
|
||||
CloudLayer::CloudLayer()
|
||||
: mBaseColor( 0.9f, 0.9f, 0.9f, 1.0f ),
|
||||
mCoverage( 0.5f ),
|
||||
: mLastTime( 0 ),
|
||||
mBaseColor( 0.9f, 0.9f, 0.9f, 1.0f ),
|
||||
mExposure( 1.0f ),
|
||||
mWindSpeed( 1.0f ),
|
||||
mLastTime( 0 )
|
||||
mCoverage( 0.5f ),
|
||||
mWindSpeed( 1.0f )
|
||||
{
|
||||
mTypeMask |= EnvironmentObjectType | StaticObjectType;
|
||||
mNetFlags.set(Ghostable | ScopeAlways);
|
||||
|
||||
mModelViewProjSC =
|
||||
mAmbientColorSC =
|
||||
mSunColorSC =
|
||||
mSunVecSC =
|
||||
mTexScaleSC =
|
||||
mBaseColorSC =
|
||||
mCoverageSC =
|
||||
mExposureSC =
|
||||
mEyePosWorldSC = 0;
|
||||
|
||||
mTexOffsetSC[0] = mTexOffsetSC[1] = mTexOffsetSC[2] = 0;
|
||||
|
||||
mTexScale[0] = 1.0;
|
||||
mTexScale[1] = 1.0;
|
||||
mTexScale[2] = 1.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue