-------------------------------------------------------------------------------------- Description This function executes a query begin event in a prepass batch gathering operation. It initializes a bunch of state variables needed for tracking the query through the scene. Unlike during DoQueryBeginForwardPass, it does not initialize the transparency stack because pre-pass, light-pass, and shadows
| 1073 | // OnQueryBegin |
| 1074 | // -------------------------------------------------------------------------------------- |
| 1075 | void Tr2InteriorScene::DoQueryBegin( const Tr2VisibilityEvent& event ) |
| 1076 | { |
| 1077 | CCP_ASSERT( event.m_eventType == Tr2VisibilityEvent::QUERY_BEGIN ); |
| 1078 | |
| 1079 | // Clear lights |
| 1080 | m_activeLightSet.Clear(); |
| 1081 | |
| 1082 | // If we're gathering forward batches, then we need a background cubemap batch here |
| 1083 | for( auto it = m_lights.begin(); it != m_lights.end(); ++it ) |
| 1084 | { |
| 1085 | m_activeLightSet.AddLight( *it, Vector3( 0.f, 0.f, 0.f ) ); |
| 1086 | } |
| 1087 | } |
| 1088 | |
| 1089 | // -------------------------------------------------------------------------------------- |
| 1090 | // Description |