MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / initMaterialList

Method initMaterialList

Engine/source/ts/tsShapeInstance.cpp:270–283  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

initMatInstancesMethod · 0.80
getVertexFormatMethod · 0.45

Tested by

no test coverage detected