| 159 | } |
| 160 | |
| 161 | BaseMatInstance* 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 | |
| 175 | void ShadowMaterialHook::_overrideFeatures( ProcessedMaterial *mat, |
| 176 | U32 stageNum, |
no outgoing calls
no test coverage detected