setFloatUniforms method
Sets the uniforms of the shader using the provided callback.
The initialIndex parameter allows you to set the index of the first
uniform. Defaults to 0.
Returns the index of the last uniform that was set.
Implementation
int setFloatUniforms(
ValueSetter<UniformsSetter> callback, {
int initialIndex = 0,
}) {
final setter = UniformsSetter(this, initialIndex);
callback(setter);
return setter._index;
}