MaterialConstant class final
A literal, and the one place a vec3(1.0, 0.0, 0.0) that is entirely
constant ends up: the parser folds a constructor whose arguments are all
literals, because a parameter is a constant too and folding is what makes a
variant's value reach the shader as a number.
- Inheritance
-
- Object
- MaterialExpression
- MaterialConstant
Constructors
-
MaterialConstant(List<
double> value, MaterialType type) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → MaterialType
-
finalinherited
-
value
→ List<
double> -
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