getVec4 method

Vector4 getVec4(
  1. String name
)

Effective value of a vec4 parameter, the assigned value if set, otherwise the sidecar default. Throws on an unknown name or wrong type.

Implementation

Vector4 getVec4(String name) {
  final f = _readFloats(_slot(name, FmatType.vec4).offsetBytes, 4);
  return Vector4(f[0], f[1], f[2], f[3]);
}