-------------------------------------------------------------------------------------- Description: Updates manager lighting. The primary light source is set to the passed directional light. A user can call GetLighting method after calling this method once per frame. Arguments: direction - Primary light direction color - Primary light color/intensity -----------------------------------------------
| 286 | // color - Primary light color/intensity |
| 287 | // -------------------------------------------------------------------------------------- |
| 288 | void Tr2ShLightingManager::UpdateWithDirectionalLight( const Vector3& direction, const Vector3& color ) |
| 289 | { |
| 290 | CCP_STATS_ZONE( __FUNCTION__ ); |
| 291 | |
| 292 | m_sunColor = color; |
| 293 | m_sunDirection = Normalize( direction ); |
| 294 | UpdateSourceData(); |
| 295 | } |
| 296 | |
| 297 | // -------------------------------------------------------------------------------------- |
| 298 | // Description: |