| 121 | } |
| 122 | |
| 123 | void PointLight::_conformLights() |
| 124 | { |
| 125 | mLight->setTransform( getRenderTransform() ); |
| 126 | |
| 127 | mLight->setRange( mRadius ); |
| 128 | |
| 129 | mLight->setColor( mColor ); |
| 130 | |
| 131 | mLight->setBrightness( mBrightness ); |
| 132 | mLight->setCastShadows( mCastShadows ); |
| 133 | mLight->setStaticRefreshFreq(mStaticRefreshFreq); |
| 134 | mLight->setDynamicRefreshFreq(mDynamicRefreshFreq); |
| 135 | mLight->setPriority( mPriority ); |
| 136 | |
| 137 | // Update the bounds and scale to fit our light. |
| 138 | mObjBox.minExtents.set( -1, -1, -1 ); |
| 139 | mObjBox.maxExtents.set( 1, 1, 1 ); |
| 140 | mObjScale.set( mRadius, mRadius, mRadius ); |
| 141 | |
| 142 | // Skip our transform... it just dirties mask bits. |
| 143 | Parent::setTransform( mObjToWorld ); |
| 144 | } |
| 145 | |
| 146 | U32 PointLight::packUpdate(NetConnection *conn, U32 mask, BitStream *stream ) |
| 147 | { |
nothing calls this directly
no test coverage detected