applyNormalMatrix method

  1. @override
InterleavedBufferAttribute applyNormalMatrix(
  1. Matrix3 m
)
override

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

Implementation

@override
InterleavedBufferAttribute 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;
}