MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / set

Method set

Engine/source/lighting/lightInfo.cpp:67–92  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67void LightInfo::set( const LightInfo *light )
68{
69 mTransform = light->mTransform;
70 mColor = light->mColor;
71 mBrightness = light->mBrightness;
72 mAmbient = light->mAmbient;
73 mRange = light->mRange;
74 mInnerConeAngle = light->mInnerConeAngle;
75 mOuterConeAngle = light->mOuterConeAngle;
76 mType = light->mType;
77 mCastShadows = light->mCastShadows;
78 mStaticRefreshFreq = light->mStaticRefreshFreq;
79 mDynamicRefreshFreq = light->mDynamicRefreshFreq;
80
81 for ( U32 i=0; i < mExtended.size(); i++ )
82 {
83 LightInfoEx *ex = light->mExtended[ i ];
84 if ( ex )
85 mExtended[i]->set( ex );
86 else
87 {
88 delete mExtended[i];
89 mExtended[i] = NULL;
90 }
91 }
92}
93
94void LightInfo::setDirection( const VectorF &dir )
95{

Callers 2

_update4LightConstsMethod · 0.45
lightSceneMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected