| 442 | } |
| 443 | |
| 444 | BaseMatInstance* ProjectedShadow::_getShadowMaterial( BaseMatInstance *inMat ) |
| 445 | { |
| 446 | // See if we have an existing material hook. |
| 447 | ShadowMaterialHook *hook = static_cast<ShadowMaterialHook*>( inMat->getHook( ShadowMaterialHook::Type ) ); |
| 448 | if ( !hook ) |
| 449 | { |
| 450 | // Create a hook and initialize it using the incoming material. |
| 451 | hook = new ShadowMaterialHook; |
| 452 | hook->init( inMat ); |
| 453 | inMat->addHook( hook ); |
| 454 | } |
| 455 | |
| 456 | return hook->getShadowMat( ShadowType_Spot ); |
| 457 | } |
| 458 | |
| 459 | void ProjectedShadow::_renderToTexture( F32 camDist, const TSRenderState &rdata ) |
| 460 | { |
nothing calls this directly
no test coverage detected