DiffuseModel class final

The diffuse lobe of the metal-rough models, pbr and pbrLayered — L8.

A final class with const instances rather than an enum, so a lobe added later does not break a switch outside. name is its wire name.

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
The stable name, as a file or a tool writes it.
final
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.
override

Operators

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

Static Methods

byName(String name) → DiffuseModel?
The value called name, or null for a name this version does not know, which is what a file written by a later version can carry.

Constants

eon → const DiffuseModel
The energy-preserving Oren-Nayar lobe of Portsmouth, Kutz and Hill (EON, JCGT 2025, preprint 2024), rough by the material's own roughness.
lambert → const DiffuseModel
A constant albedo / π, the same in every direction. The default, and every frame the metal-rough models drew before the other existed.
values → const List<DiffuseModel>
Every lobe.