MeshVariant enum Materials

The mesh kind a vertex shader runs on.

A geometry selects the variant it needs, and the engine's standard shader runs for any variant a material does not supply.

Inheritance
Available extensions

Values

unskinned → const MeshVariant

A static mesh, whose vertices arrive as-is.

const MeshVariant('unskinned')
skinned → const MeshVariant

A skinned mesh, whose vertices are posed by joints before the material's shader sees them.

const MeshVariant('skinned')
depth → const MeshVariant

The position-only pass that draws shadow maps and the depth prepass. Supply this when the vertex stage moves geometry, so its shadow moves with it.

const MeshVariant('depth')

Properties

hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String
The wire name the geometry and the .fmat sidecar use.
final
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

fromName(String name) → MeshVariant
The variant name selects, or unskinned for an unknown name.

Constants

values → const List<MeshVariant>
A constant List of the values in this enum, in order of their declaration.