| 337 | } |
| 338 | |
| 339 | BaseMatInstance* LightShadowMap::getShadowMaterial( BaseMatInstance *inMat ) const |
| 340 | { |
| 341 | // See if we have an existing material hook. |
| 342 | ShadowMaterialHook *hook = static_cast<ShadowMaterialHook*>( inMat->getHook( ShadowMaterialHook::Type ) ); |
| 343 | if ( !hook ) |
| 344 | { |
| 345 | // Create a hook and initialize it using the incoming material. |
| 346 | hook = new ShadowMaterialHook; |
| 347 | hook->init( inMat ); |
| 348 | inMat->addHook( hook ); |
| 349 | } |
| 350 | |
| 351 | return hook->getShadowMat( getShadowType() ); |
| 352 | } |
| 353 | |
| 354 | U32 LightShadowMap::getBestTexSize( U32 scale ) const |
| 355 | { |
nothing calls this directly
no test coverage detected