MtlMaterial class final
A material exactly as written in a .mtl file.
Kept as the raw Phong-era record so the parser stays a faithful reader of the format; the conversion to the shared SurfaceMaterial happens in the loader, where the approximation can be documented in one place.
Constructors
- MtlMaterial({required String name, Vector3? diffuse, Vector3? specular, double? specularExponent, double opacity = 1.0, String? diffuseTexturePath})
-
const
Properties
- approximateMetallic → double
-
Metallic approximated from the specular colour.
no setter
- approximateRoughness → double
-
Perceptual roughness approximated from the Phong exponent.
no setter
- diffuse → Vector3?
-
Kd, in the 0..1 range and authored non-linearly.final - diffuseTexturePath → String?
-
map_Kd, relative to the.mtlfile.final - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
final
- opacity → double
-
d, or1 - Tr.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- specular → Vector3?
-
Ks.final - specularExponent → double?
-
Ns, the Phong exponent, roughly 0..1000.final
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