UniformMat4Slot class base

A binding to a uniform of type mat4. Calling set on this object updates the uniform's value.

Example:

void updateShader(ui.FragmentShader shader) {
  shader.getUniformMat4('uIdentity').set(
    1.0, 0.0, 0.0, 0.0,
    0.0, 1.0, 0.0, 0.0,
    0.0, 0.0, 1.0, 0.0,
    0.0, 0.0, 0.0, 1.0
  );
}

See also: FragmentShader.getUniformMat4 - How UniformMat4Slot instances are acquired.

Inheritance

Properties

hashCode int
The hash code for this object.
no setterinherited
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
set(double m00, double m01, double m02, double m03, double m10, double m11, double m12, double m13, double m20, double m21, double m22, double m23, double m30, double m31, double m32, double m33) → void
Set the float value of the matrix in row-major order.
toString() String
A string representation of this object.
inherited

Operators

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