setColorAt method

void setColorAt(
  1. int index,
  2. Color color
)

Implementation

void setColorAt(int index, Color color) {
  instanceColor ??= InstancedBufferAttribute(
      Float32Array((instanceMatrix!.count * 3).toInt()), 3, false);

  return color.toArray(instanceColor!.array, index * 3);
}