MaterialT 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.

Implemented types

Constructors

MaterialT({MaterialType type = MaterialType.kUnlit, ColorT? baseColorFactor, int baseColorTexture = -1, double metallicFactor = 0.0, double roughnessFactor = 0.5, int metallicRoughnessTexture = -1, double normalScale = 1.0, int normalTexture = -1, Vec3T? emissiveFactor, int emissiveTexture = -1, double occlusionStrength = 1.0, int occlusionTexture = -1})

Properties

baseColorFactor ↔ ColorT?
getter/setter pair
baseColorTexture ↔ int
getter/setter pair
emissiveFactor ↔ Vec3T?
getter/setter pair
emissiveTexture ↔ int
getter/setter pair
hashCode → int
The hash code for this object.
no setterinherited
metallicFactor ↔ double
getter/setter pair
metallicRoughnessTexture ↔ int
getter/setter pair
normalScale ↔ double
getter/setter pair
normalTexture ↔ int
getter/setter pair
occlusionStrength ↔ double
getter/setter pair
occlusionTexture ↔ int
getter/setter pair
roughnessFactor ↔ double
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
type ↔ MaterialType
getter/setter pair

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pack(Builder fbBuilder) → int
Serialize the object using the given builder, returning the offset.
override
toString() → String
A string representation of this object.
override

Operators

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