Enumeration

MaterialScalarParameter

The scalar parameter applied to a material.

Declaration

enum MaterialScalarParameter

Topics

Getting Scalar Parameters

case float(Float)

A scalar, single-precision value.

case texture(TextureResource)

A one-channel texture.

Creating a Scalar Parameter

init(floatLiteral: Float)

Creates a scalar parameter from a floating-point literal.

init(integerLiteral: Int)

Creates a scalar parameter from an integer literal.

typealias MaterialScalarParameter.FloatLiteralType

A type for use in creating a scalar parameter from a floating-point literal.

typealias MaterialScalarParameter.IntegerLiteralType

A type for use in creating a scalar parameter from an integer literal.

Comparing Material Scalar Parameters

static func == (MaterialScalarParameter, MaterialScalarParameter) -> Bool

Indicates whether two scalar parameters are equal.

static func != (MaterialScalarParameter, MaterialScalarParameter) -> Bool

Indicates whether two scalar parameters are not equal.

func hash(into: inout Hasher)

Hashes the essential components of the scalar parameter by feeding them into the given hash function.

var hashValue: Int

The hashed value of the scalar parameter.

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.

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.