| 270 | } |
| 271 | |
| 272 | void TSShapeInstance::initMaterialList( const FeatureSet *features ) |
| 273 | { |
| 274 | // If we don't have features then use the default. |
| 275 | if ( !features ) |
| 276 | features = &MATMGR->getDefaultFeatures(); |
| 277 | |
| 278 | // Initialize the materials. |
| 279 | mMaterialList->initMatInstances( *features, mShape->getVertexFormat() ); |
| 280 | |
| 281 | // TODO: It would be good to go thru all the meshes and |
| 282 | // pre-create all the active material hooks for shadows, |
| 283 | // reflections, and instancing. This would keep these |
| 284 | // hiccups from happening at runtime. |
| 285 | } |
| 286 | |
| 287 | void TSShapeInstance::reSkin( String newBaseName, String oldBaseName ) |
| 288 | { |
nothing calls this directly
no test coverage detected