An invisible material that hides objects rendered behind it.


struct OcclusionMaterial


Creating an Occlusion Material

init(receivesDynamicLighting: Bool)

Creates an occlusion material.

Receiving Dynamic Lighting

let receivesDynamicLighting: Bool

A Boolean that indicates whether the occlusion material receives dynamic lighting.


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 UnlitMaterial

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

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.