| 140 | } |
| 141 | |
| 142 | ImposterCaptureMaterialHook* ImposterCaptureMaterialHook::_getOrCreateHook( BaseMatInstance *inMat ) |
| 143 | { |
| 144 | ImposterCaptureMaterialHook *hook = inMat->getHook<ImposterCaptureMaterialHook>(); |
| 145 | if ( !hook ) |
| 146 | { |
| 147 | // Create a hook and initialize it using the incoming material. |
| 148 | hook = new ImposterCaptureMaterialHook; |
| 149 | hook->init( inMat ); |
| 150 | inMat->addHook( hook ); |
| 151 | } |
| 152 | |
| 153 | return hook; |
| 154 | } |
| 155 | |
| 156 | |
| 157 | ImposterCapture::ImposterCapture() |