UniformVec4Slot class base

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

Example:

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

See also: FragmentShader.getUniformVec4 - How UniformVec4Slot instances are acquired.

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 x, double y, double z, double w) → void
Set the float value of the bound uniform.
toString() String
A string representation of this object.
inherited

Operators

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