Structure

UnlitMaterial

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

Declaration

struct UnlitMaterial

Topics

Creating an Unlit Material

init()

Creates an unlit material.

init(color: NSColor)

Creates an unlit material with the given base color.

init(color: UIColor)

Creates an unlit material with the given base color.

Configuring Base Color

var baseColor: MaterialColorParameter

The base color of the material.

Tinting an Unlit Material

var tintColor: NSColor

A tint color applied to the base color.

var tintColor: UIColor

A tint color applied to the base color.

Relationships

Conforms To

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 OcclusionMaterial

An invisible material that hides objects rendered behind it.

protocol Material

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

enum MaterialColorParameter

The color parameter applied to a material.

enum MaterialScalarParameter

The scalar parameter applied to a material.