GpuMaterial class final

A material's textures and settings, ready to bind.

Properties

data → MaterialData
Its settings.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
textures → List<(GpuTexture, GpuSampler)>
Base colour, metal-rough, normal, occlusion, emissive — in that order; a missing one is a 1×1 default.
final
uniforms ↔ GpuBuffer?
The uniform block's bytes, built once by the renderer.
getter/setter pair

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

Constants

textureNames → const List<String>
The sampler uniform names, in textures order.