PBRMetallicRoughness class
A set of parameter values that are used to define the metallic-roughness material model from Physically-Based Rendering (PBR) methodology.
Constructors
- PBRMetallicRoughness({required GltfRoot root, required Vector4? baseColorFactor, required TextureInfo? baseColorTexture, required double metallicFactor, required double roughnessFactor, required TextureInfo? metallicRoughnessTexture})
-
PBRMetallicRoughness.parse(GltfRoot root, Map<
String, Object?> map)
Properties
- baseColorFactor → Vector4?
-
The factors for the base color of the material.
This value defines linear multipliers for the sampled texels of the base
color texture.
final
- baseColorTexture → TextureInfo?
-
The base color texture.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- metallicFactor → double
-
The factor for the metalness of the material.
This value defines a linear multiplier for the sampled metalness values
of the metallic-roughness texture.
Goes from
0, 1
. Default value is 1.final - metallicRoughnessTexture → TextureInfo?
-
The metallic-roughness texture.
The metalness values are sampled from the B channel.
The roughness values are sampled from the G channel.
These values MUST be encoded with a linear transfer function.
If other channels are present (R or A), they MUST be ignored for
metallic-roughness calculations.
When undefined, the texture MUST be sampled as having
1.0
in G and B components."final - root → GltfRoot
-
finalinherited
- roughnessFactor → double
-
The factor for the roughness of the material.
This value defines a linear multiplier for the sampled roughness values
of the metallic-roughness texture.
Goes from
0, 1
. Default value is 1.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
-
toFlameSpatialMaterial(
) → SpatialMaterial? -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited