-------------------------------------------------------------------------------------- Description: Adds a non-instanced light source and computes the view importance Arguments: lightSource - The light source to add viewPosition - The view position, used to determine view importance --------------------------------------------------------------------------------------
| 31 | // viewPosition - The view position, used to determine view importance |
| 32 | // -------------------------------------------------------------------------------------- |
| 33 | void Tr2InteriorLightSet::AddLight( ITr2InteriorLight* lightSource, |
| 34 | const Vector3& viewPosition ) |
| 35 | { |
| 36 | // Setup the light instance |
| 37 | InternalLightInstance instance = { |
| 38 | lightSource, |
| 39 | false |
| 40 | }; |
| 41 | |
| 42 | // Insert the light instance into the list |
| 43 | m_lightInstances.push_back( instance ); |
| 44 | } |
| 45 | |
| 46 | // -------------------------------------------------------------------------------------- |
| 47 | // Description: |