MaterialOverride class final
Changes to one material; a null field keeps the file's value.
Constructors
- MaterialOverride({(double, double, double, double)? baseColor, double? metallic, double? roughness, (double, double, double)? emissive, double? emissiveStrength, bool? doubleSided, bool? unlit})
-
Changes; none by default.
const
-
MaterialOverride.fromJson(Map<
String, dynamic> json) -
Reads one saved by toJson.
factory
Properties
- baseColor → (double, double, double, double)?
-
Linear RGBA multiplier.
final
- doubleSided → bool?
-
Drawn from both sides.
final
- emissive → (double, double, double)?
-
Linear RGB glow.
final
- emissiveStrength → double?
-
Glow multiplier.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether it changes nothing.
no setter
- metallic → double?
-
0 (not metal) to 1.
final
- roughness → double?
-
0 (mirror) to 1.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- unlit → bool?
-
Not lit: its colour as it is.
final
Methods
-
applyTo(
MaterialData m) → MaterialData -
mwith these changes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - The change as saved.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited