MaterialBindings class final

What describeMaterial found, in the shape LightingModel takes.

A record of the answer rather than a LightingModel itself, because building one needs a label and a vertex stage name that are the application's to choose — and because this package would otherwise decide how a material is shown in a picker.

Constructors

MaterialBindings({required String name, required bool usesAlbedoTexture, required bool usesMaterialMaps, required bool usesMetallicRoughnessMap, required bool usesMetallic})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
usesAlbedoTexture → bool
final
usesLightList → bool
Always false: a material in this language returns the light its surface emits and gathers none, so the emitted stage declares no light list.
no setter
usesMaterialMaps → bool
final
usesMetallic → bool
final
usesMetallicRoughnessMap → bool
final

Methods

lightingModel({required String label, required String shaderName, String? vertexShaderName, bool vertexStageMorphs = true}) → LightingModel
The LightingModel these bindings describe, with the label and entry point the application chose.
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