| 65 | } |
| 66 | |
| 67 | void 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 | |
| 94 | void LightInfo::setDirection( const VectorF &dir ) |
| 95 | { |
no test coverage detected