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

Method ShadowMapParams

Engine/source/lighting/shadowMap/lightShadowMap.cpp:582–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

580LightInfoExType ShadowMapParams::Type( "" );
581
582ShadowMapParams::ShadowMapParams( LightInfo *light )
583 : mLight( light ),
584 mShadowMap( NULL ),
585 mDynamicShadowMap ( NULL ),
586 isDynamic ( true )
587{
588 attenuationRatio.set( 0.0f, 1.0f, 1.0f );
589 shadowType = ShadowType_Spot;
590 overDarkFactor.set(2000.0f, 1000.0f, 500.0f, 100.0f);
591 numSplits = 4;
592 logWeight = 0.91f;
593 texSize = 512;
594 shadowDistance = 400.0f;
595 shadowSoftness = 0.15f;
596 fadeStartDist = 0.0f;
597 lastSplitTerrainOnly = false;
598 mQuery = GFX->createOcclusionQuery();
599
600 _validate();
601}
602
603ShadowMapParams::~ShadowMapParams()
604{

Callers

nothing calls this directly

Calls 2

setMethod · 0.45
createOcclusionQueryMethod · 0.45

Tested by

no test coverage detected