This page contains reference documentation for the SetActiveMaterial function. This function sets a material as the active material in the scene graph.
int SetActiveMaterial( Material NewActiveMaterial )
Function parameters are as follows:
Examples are as follows:
// Set the selected material as Active Material.
Node node = Model.GetSelectedNode( i ).GetNode();
if( node.IsDerived( Material ) )
{
Model.SetActiveMaterial ( (Material)node );
}
For sample code: