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

Method initMaterialList

Engine/source/ts/tsShapeInstance.cpp:272–285  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270}
271
272void 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
287void TSShapeInstance::reSkin( String newBaseName, String oldBaseName )
288{

Callers

nothing calls this directly

Calls 2

initMatInstancesMethod · 0.80
getVertexFormatMethod · 0.45

Tested by

no test coverage detected