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

Method AddLight

trinity/Interior/Tr2InteriorLightSet.cpp:33–44  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

31// viewPosition - The view position, used to determine view importance
32// --------------------------------------------------------------------------------------
33void 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:

Callers 1

DoQueryBeginMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected