MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / getDefaultLight

Method getDefaultLight

Engine/source/lighting/lightManager.cpp:161–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161LightInfo* LightManager::getDefaultLight()
162{
163 // The sun is always our default light when
164 // when its registered.
165 if ( mSpecialLights[ LightManager::slSunLightType ] )
166 return mSpecialLights[ LightManager::slSunLightType ];
167
168 // Else return a dummy special light.
169 if ( !mDefaultLight )
170 mDefaultLight = createLightInfo();
171 return mDefaultLight;
172}
173
174LightInfo* LightManager::getSpecialLight( LightManager::SpecialLightTypesEnum type, bool useDefault )
175{

Callers 1

_innerRenderMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected