MCPcopy Create free account
hub / github.com/carbonengine/trinity / IsInFrustum

Method IsInFrustum

trinity/Interior/Tr2InteriorLightSource.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154bool Tr2InteriorLightSource::IsInFrustum( const TriFrustum& frustum, Matrix& objectToWorld ) const
155{
156 if( !m_primaryLighting )
157 {
158 return false;
159 }
160 objectToWorld = TranslationMatrix( m_position );
161 return frustum.IsBoxVisible( m_worldBoundingBox.m_min, m_worldBoundingBox.m_max );
162}
163
164void Tr2InteriorLightSource::GetDebugOptions( Tr2DebugRendererOptions& options )
165{

Callers

nothing calls this directly

Calls 1

IsBoxVisibleMethod · 0.80

Tested by

no test coverage detected