applyNormalMatrix method

BufferAttribute<NativeArray<num>> applyNormalMatrix(
  1. Matrix3 m
)

Applies normal matrix m to every Vector3 element of this BufferAttribute.

Implementation

BufferAttribute applyNormalMatrix(Matrix3 m) {
  for (int i = 0, l = count; i < l; i++) {
    _vector.fromBuffer( this, i );

    _vector.applyNormalMatrix(m);

    setXYZ(i, _vector.x, _vector.y, _vector.z);
  }

  return this;
}