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

Method UpdateWithDirectionalLight

trinity/Tr2ShLightingManager.cpp:288–295  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- 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 -----------------------------------------------

Source from the content-addressed store, hash-verified

286// color - Primary light color/intensity
287// --------------------------------------------------------------------------------------
288void 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:

Callers 1

BeginRenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected