Node.Material

Node.Material property

Gets or sets the first material associated with this node, if sets, will clear other materials

public Material Material { get; set; }

Property Value

The material.

Examples

Scene scene = new Scene();
var node = scene.RootNode.CreateChildNode(new Box());
node.Material = new LambertMaterial();

See Also