-----------------------------------------------------------------------------
| 808 | |
| 809 | // ----------------------------------------------------------------------------- |
| 810 | void EveEffectRoot2::RenderDebugInfo( ITr2DebugRenderer2& renderer ) |
| 811 | { |
| 812 | if( renderer.HasOption( GetRawRoot(), "Bounding Sphere" ) ) |
| 813 | { |
| 814 | renderer.DrawSphere( this, m_boundingSphere.GetXYZ(), GetBoundingSphereRadius(), 8, Tr2DebugRenderer::Wireframe, 0xffff00ff ); |
| 815 | } |
| 816 | |
| 817 | for( auto it = begin( m_effectChildren ); it != end( m_effectChildren ); ++it ) |
| 818 | { |
| 819 | if( auto renderable = dynamic_cast<ITr2DebugRenderable*>( *it ) ) |
| 820 | { |
| 821 | renderable->RenderDebugInfo( renderer ); |
| 822 | } |
| 823 | } |
| 824 | |
| 825 | if( renderer.HasOption( GetRawRoot(), "Lights" ) ) |
| 826 | { |
| 827 | for( auto it = begin( m_lights ); it != end( m_lights ); ++it ) |
| 828 | { |
| 829 | ( *it )->RenderDebugInfo( renderer, m_worldTransform ); |
| 830 | } |
| 831 | } |
| 832 | |
| 833 | for( auto it = m_observers.begin(); it != m_observers.end(); ++it ) |
| 834 | { |
| 835 | ( *it )->RenderDebugInfo( renderer ); |
| 836 | } |
| 837 | } |
| 838 | |
| 839 | // ----------------------------------------------------------------------------- |
| 840 | void EveEffectRoot2::SetControllerVariable( const char* name, float value ) |