Type Method

material

Creates a new material object.

Declaration

+ (instancetype)material;

Return Value

A new material object.

Discussion

A newly created material contains an SCNMaterialProperty object for each of its eight visual properties. You change a material’s appearance by setting the contents of each visual property. For information on each visual property’s default contents and how it affects a material’s appearance, see Visual Properties for Special Effects.

See Also

Creating a Material

+ materialWithMDLMaterial:

Creates a material from the specified Model I/O material object.

name

A name associated with the material.