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

Method LightShadowMap

Engine/source/lighting/shadowMap/lightShadowMap.cpp:84–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83
84LightShadowMap::LightShadowMap( LightInfo *light )
85 : mWorldToLightProj( true ),
86 mLight( light ),
87 mTexSize( 0 ),
88 mLastShader( NULL ),
89 mLastUpdate( 0 ),
90 mLastCull( 0 ),
91 mIsViewDependent( false ),
92 mLastScreenSize( 0.0f ),
93 mLastPriority( 0.0f ),
94 mIsDynamic( false )
95{
96 GFXTextureManager::addEventDelegate( this, &LightShadowMap::_onTextureEvent );
97
98 mTarget = GFX->allocRenderToTextureTarget();
99 smShadowMaps.push_back( this );
100 mStaticRefreshTimer = PlatformTimer::create();
101 mDynamicRefreshTimer = PlatformTimer::create();
102}
103
104LightShadowMap::~LightShadowMap()
105{

Callers

nothing calls this directly

Calls 2

push_backMethod · 0.45

Tested by

no test coverage detected