normalizeNormals method

void normalizeNormals()
inherited

Implementation

void normalizeNormals() {
  var normals = attributes["normal"];

  for (var i = 0, il = normals.count; i < il; i++) {
    _bufferGeometryvector.fromBufferAttribute(normals, i);

    _bufferGeometryvector.normalize();

    normals.setXYZ(i, _bufferGeometryvector.x, _bufferGeometryvector.y, _bufferGeometryvector.z);
  }
}