Material class
The final color of each material component is the texture color multiplied
by the factor of the component.
Texture fields are indices into the Scene
->textures
array. All textures
are optional -- a texture index value of -1 indicates no texture.
Constructors
-
Material.new(List<
int> bytes) -
factory
Properties
- baseColorFactor → Color?
-
no setter
- baseColorTexture → int
-
no setter
- emissiveFactor → Vec3?
-
no setter
- emissiveTexture → int
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- metallicFactor → double
-
no setter
- metallicRoughnessTexture → int
-
no setter
- normalScale → double
-
no setter
- normalTexture → int
-
no setter
- occlusionStrength → double
-
no setter
- occlusionTexture → int
-
no setter
- roughnessFactor → double
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MaterialType
-
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
-
unpack(
) → MaterialT
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited