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

Method getShadowMat

Engine/source/lighting/shadowMap/shadowMatHook.cpp:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161BaseMatInstance* ShadowMaterialHook::getShadowMat( ShadowType type ) const
162{
163 AssertFatal( type < ShadowType_Count, "ShadowMaterialHook::getShadowMat() - Bad light type!" );
164
165 // The cubemap and pssm shadows use the same
166 // spotlight material for shadows.
167 if ( type == ShadowType_Spot ||
168 type == ShadowType_PSSM )
169 return mShadowMat[ShadowType_Spot];
170
171 // Get the specialized shadow material.
172 return mShadowMat[type];
173}
174
175void ShadowMaterialHook::_overrideFeatures( ProcessedMaterial *mat,
176 U32 stageNum,

Callers 2

getShadowMaterialMethod · 0.45
_getShadowMaterialMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected