M3Material class

Material properties for rendering (diffuse color, specular, shininess, textures).

Constructors

M3Material()
M3Material.fromGltf(GltfMaterial gltfMat, GltfDocument doc)
factory

Properties

diffuse Vector4
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
reflection double
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shininess double
getter/setter pair
specular Vector3
getter/setter pair
texDiffuse M3Texture
getter/setter pair
texMatrix Matrix3
getter/setter pair

Methods

clone() M3Material
Creates a deep copy of this material. Vector and Matrix properties are cloned, while texture references are shared.
copyFrom(M3Material other) → void
Copies all properties from another material.
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