A type that describes the material aspects of a mesh, like color and texture.


protocol Material


Specifying Color

typealias Material.Color

An alias for the color type that’s appropriate for the current platform.


See Also

Configuring the Material

var materials: [Material]

The materials used by the model.

struct SimpleMaterial

A basic material that you can apply to meshes.

struct UnlitMaterial

A simple material that doesn’t respond to lights in the scene.

struct OcclusionMaterial

An invisible material that hides objects rendered behind it.

enum MaterialColorParameter

The color parameter applied to a material.

enum MaterialScalarParameter

The scalar parameter applied to a material.