Structure

SimpleMaterial

A basic material that you can apply to meshes.

Declaration

struct SimpleMaterial

Topics

Creating a Simple Material

init()

Creates a simple material.

init(color: SimpleMaterial.Color, roughness: MaterialScalarParameter, isMetallic: Bool)

Creates a simple material with specific characteristics in macOs.

init(color: SimpleMaterial.Color, roughness: MaterialScalarParameter, isMetallic: Bool)

Creates a simple material with specific characteristics in iOS.

Characterizing a Material

var baseColor: MaterialColorParameter

The base color of the material.

var metallic: MaterialScalarParameter

A Boolean that you set to control whether the material has a metallic look.

var roughness: MaterialScalarParameter

The roughness of the material.

Tinting a Material

var tintColor: NSColor

A tint color applied to the base color in macOS.

var tintColor: UIColor

A tint color applied to the base color in iOS.

Relationships

Conforms To

See Also

Configuring the Material

var materials: [Material]

The materials used by the model.

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.

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.