@needle-tools/three 0.169.3 → 0.169.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -238,7 +238,7 @@ class EventDispatcher {
238
238
 
239
239
  }
240
240
 
241
- if ( listeners[ type ].indexOf( listener ) === - 1 ) {
241
+ if ( listeners[ type ].indexOf( listener ) === -1 ) {
242
242
 
243
243
  listeners[ type ].push( listener );
244
244
 
@@ -252,7 +252,7 @@ class EventDispatcher {
252
252
 
253
253
  const listeners = this._listeners;
254
254
 
255
- return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== - 1;
255
+ return listeners[ type ] !== undefined && listeners[ type ].indexOf( listener ) !== -1;
256
256
 
257
257
  }
258
258
 
@@ -267,7 +267,7 @@ class EventDispatcher {
267
267
 
268
268
  const index = listenerArray.indexOf( listener );
269
269
 
270
- if ( index !== - 1 ) {
270
+ if ( index !== -1 ) {
271
271
 
272
272
  listenerArray.splice( index, 1 );
273
273
 
@@ -556,15 +556,15 @@ function denormalize( value, array ) {
556
556
 
557
557
  case Int32Array:
558
558
 
559
- return Math.max( value / 2147483647.0, - 1.0 );
559
+ return Math.max( value / 2147483647.0, -1 );
560
560
 
561
561
  case Int16Array:
562
562
 
563
- return Math.max( value / 32767.0, - 1.0 );
563
+ return Math.max( value / 32767.0, -1 );
564
564
 
565
565
  case Int8Array:
566
566
 
567
- return Math.max( value / 127.0, - 1.0 );
567
+ return Math.max( value / 127.0, -1 );
568
568
 
569
569
  default:
570
570
 
@@ -1006,7 +1006,7 @@ class Vector2 {
1006
1006
 
1007
1007
  // clamp, to handle numerical problems
1008
1008
 
1009
- return Math.acos( clamp$1( theta, - 1, 1 ) );
1009
+ return Math.acos( clamp$1( theta, -1, 1 ) );
1010
1010
 
1011
1011
  }
1012
1012
 
@@ -1582,9 +1582,9 @@ const LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = /*@__PURE__*/ new Matrix3().set(
1582
1582
  );
1583
1583
 
1584
1584
  const LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = /*@__PURE__*/ new Matrix3().set(
1585
- 1.2249401, - 0.2249404, 0.0,
1586
- - 0.0420569, 1.0420571, 0.0,
1587
- - 0.0196376, - 0.0786361, 1.0982735
1585
+ 1.2249401, -0.2249404, 0.0,
1586
+ -0.0420569, 1.0420571, 0.0,
1587
+ -0.0196376, -0.0786361, 1.0982735
1588
1588
  );
1589
1589
 
1590
1590
  /**
@@ -3239,7 +3239,7 @@ class Quaternion {
3239
3239
 
3240
3240
  let s = 1 - t;
3241
3241
  const cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1,
3242
- dir = ( cos >= 0 ? 1 : - 1 ),
3242
+ dir = ( cos >= 0 ? 1 : -1 ),
3243
3243
  sqrSin = 1 - cos * cos;
3244
3244
 
3245
3245
  // Skip the Slerp for tiny steps to avoid numeric problems:
@@ -3582,7 +3582,7 @@ class Quaternion {
3582
3582
 
3583
3583
  angleTo( q ) {
3584
3584
 
3585
- return 2 * Math.acos( Math.abs( clamp$1( this.dot( q ), - 1, 1 ) ) );
3585
+ return 2 * Math.acos( Math.abs( clamp$1( this.dot( q ), -1, 1 ) ) );
3586
3586
 
3587
3587
  }
3588
3588
 
@@ -3616,9 +3616,9 @@ class Quaternion {
3616
3616
 
3617
3617
  conjugate() {
3618
3618
 
3619
- this._x *= - 1;
3620
- this._y *= - 1;
3621
- this._z *= - 1;
3619
+ this._x *= -1;
3620
+ this._y *= -1;
3621
+ this._z *= -1;
3622
3622
 
3623
3623
  this._onChangeCallback();
3624
3624
 
@@ -4400,7 +4400,7 @@ class Vector3 {
4400
4400
 
4401
4401
  // clamp, to handle numerical problems
4402
4402
 
4403
- return Math.acos( clamp$1( theta, - 1, 1 ) );
4403
+ return Math.acos( clamp$1( theta, -1, 1 ) );
4404
4404
 
4405
4405
  }
4406
4406
 
@@ -5128,7 +5128,7 @@ const _v2$3 = /*@__PURE__*/ new Vector3();
5128
5128
 
5129
5129
  class Sphere {
5130
5130
 
5131
- constructor( center = new Vector3(), radius = - 1 ) {
5131
+ constructor( center = new Vector3(), radius = -1 ) {
5132
5132
 
5133
5133
  this.isSphere = true;
5134
5134
 
@@ -5192,7 +5192,7 @@ class Sphere {
5192
5192
  makeEmpty() {
5193
5193
 
5194
5194
  this.center.set( 0, 0, 0 );
5195
- this.radius = - 1;
5195
+ this.radius = -1;
5196
5196
 
5197
5197
  return this;
5198
5198
 
@@ -5374,7 +5374,7 @@ const _normal$2 = /*@__PURE__*/ new Vector3();
5374
5374
 
5375
5375
  class Ray {
5376
5376
 
5377
- constructor( origin = new Vector3(), direction = new Vector3( 0, 0, - 1 ) ) {
5377
+ constructor( origin = new Vector3(), direction = new Vector3( 0, 0, -1 ) ) {
5378
5378
 
5379
5379
  this.origin = origin;
5380
5380
  this.direction = direction;
@@ -5780,7 +5780,7 @@ class Ray {
5780
5780
 
5781
5781
  } else if ( DdN < 0 ) {
5782
5782
 
5783
- sign = - 1;
5783
+ sign = -1;
5784
5784
  DdN = - DdN;
5785
5785
 
5786
5786
  } else {
@@ -6640,7 +6640,7 @@ class Matrix4 {
6640
6640
  if ( coordinateSystem === WebGLCoordinateSystem ) {
6641
6641
 
6642
6642
  c = - ( far + near ) / ( far - near );
6643
- d = ( - 2 * far * near ) / ( far - near );
6643
+ d = ( -2 * far * near ) / ( far - near );
6644
6644
 
6645
6645
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
6646
6646
 
@@ -6656,7 +6656,7 @@ class Matrix4 {
6656
6656
  te[ 0 ] = x; te[ 4 ] = 0; te[ 8 ] = a; te[ 12 ] = 0;
6657
6657
  te[ 1 ] = 0; te[ 5 ] = y; te[ 9 ] = b; te[ 13 ] = 0;
6658
6658
  te[ 2 ] = 0; te[ 6 ] = 0; te[ 10 ] = c; te[ 14 ] = d;
6659
- te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = - 1; te[ 15 ] = 0;
6659
+ te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = -1; te[ 15 ] = 0;
6660
6660
 
6661
6661
  return this;
6662
6662
 
@@ -6677,12 +6677,12 @@ class Matrix4 {
6677
6677
  if ( coordinateSystem === WebGLCoordinateSystem ) {
6678
6678
 
6679
6679
  z = ( far + near ) * p;
6680
- zInv = - 2 * p;
6680
+ zInv = -2 * p;
6681
6681
 
6682
6682
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
6683
6683
 
6684
6684
  z = near * p;
6685
- zInv = - 1 * p;
6685
+ zInv = -1 * p;
6686
6686
 
6687
6687
  } else {
6688
6688
 
@@ -6877,7 +6877,7 @@ class Euler {
6877
6877
 
6878
6878
  case 'XYZ':
6879
6879
 
6880
- this._y = Math.asin( clamp$1( m13, - 1, 1 ) );
6880
+ this._y = Math.asin( clamp$1( m13, -1, 1 ) );
6881
6881
 
6882
6882
  if ( Math.abs( m13 ) < 0.9999999 ) {
6883
6883
 
@@ -6895,7 +6895,7 @@ class Euler {
6895
6895
 
6896
6896
  case 'YXZ':
6897
6897
 
6898
- this._x = Math.asin( - clamp$1( m23, - 1, 1 ) );
6898
+ this._x = Math.asin( - clamp$1( m23, -1, 1 ) );
6899
6899
 
6900
6900
  if ( Math.abs( m23 ) < 0.9999999 ) {
6901
6901
 
@@ -6913,7 +6913,7 @@ class Euler {
6913
6913
 
6914
6914
  case 'ZXY':
6915
6915
 
6916
- this._x = Math.asin( clamp$1( m32, - 1, 1 ) );
6916
+ this._x = Math.asin( clamp$1( m32, -1, 1 ) );
6917
6917
 
6918
6918
  if ( Math.abs( m32 ) < 0.9999999 ) {
6919
6919
 
@@ -6931,7 +6931,7 @@ class Euler {
6931
6931
 
6932
6932
  case 'ZYX':
6933
6933
 
6934
- this._y = Math.asin( - clamp$1( m31, - 1, 1 ) );
6934
+ this._y = Math.asin( - clamp$1( m31, -1, 1 ) );
6935
6935
 
6936
6936
  if ( Math.abs( m31 ) < 0.9999999 ) {
6937
6937
 
@@ -6949,7 +6949,7 @@ class Euler {
6949
6949
 
6950
6950
  case 'YZX':
6951
6951
 
6952
- this._z = Math.asin( clamp$1( m21, - 1, 1 ) );
6952
+ this._z = Math.asin( clamp$1( m21, -1, 1 ) );
6953
6953
 
6954
6954
  if ( Math.abs( m21 ) < 0.9999999 ) {
6955
6955
 
@@ -6967,7 +6967,7 @@ class Euler {
6967
6967
 
6968
6968
  case 'XZY':
6969
6969
 
6970
- this._z = Math.asin( - clamp$1( m12, - 1, 1 ) );
6970
+ this._z = Math.asin( - clamp$1( m12, -1, 1 ) );
6971
6971
 
6972
6972
  if ( Math.abs( m12 ) < 0.9999999 ) {
6973
6973
 
@@ -7494,7 +7494,7 @@ class Object3D extends EventDispatcher {
7494
7494
 
7495
7495
  const index = this.children.indexOf( object );
7496
7496
 
7497
- if ( index !== - 1 ) {
7497
+ if ( index !== -1 ) {
7498
7498
 
7499
7499
  object.parent = null;
7500
7500
  this.children.splice( index, 1 );
@@ -8835,7 +8835,7 @@ class Color {
8835
8835
 
8836
8836
  getHexString( colorSpace = SRGBColorSpace ) {
8837
8837
 
8838
- return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( - 6 );
8838
+ return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( -6 );
8839
8839
 
8840
8840
  }
8841
8841
 
@@ -9715,7 +9715,7 @@ function _generateTables() {
9715
9715
 
9716
9716
  // very small number (0, -0)
9717
9717
 
9718
- if ( e < - 27 ) {
9718
+ if ( e < -27 ) {
9719
9719
 
9720
9720
  baseTable[ i ] = 0x0000;
9721
9721
  baseTable[ i | 0x100 ] = 0x8000;
@@ -9724,7 +9724,7 @@ function _generateTables() {
9724
9724
 
9725
9725
  // small number (denorm)
9726
9726
 
9727
- } else if ( e < - 14 ) {
9727
+ } else if ( e < -14 ) {
9728
9728
 
9729
9729
  baseTable[ i ] = 0x0400 >> ( - e - 14 );
9730
9730
  baseTable[ i | 0x100 ] = ( 0x0400 >> ( - e - 14 ) ) | 0x8000;
@@ -9781,7 +9781,7 @@ function _generateTables() {
9781
9781
 
9782
9782
  }
9783
9783
 
9784
- m &= ~ 0x00800000; // clear leading 1 bit
9784
+ m &= -8388609; // clear leading 1 bit
9785
9785
  e += 0x38800000; // adjust bias
9786
9786
 
9787
9787
  mantissaTable[ i ] = m | e;
@@ -9839,7 +9839,7 @@ function toHalfFloat( val ) {
9839
9839
 
9840
9840
  if ( Math.abs( val ) > 65504 ) console.warn( 'THREE.DataUtils.toHalfFloat(): Value out of range.' );
9841
9841
 
9842
- val = clamp$1( val, - 65504, 65504 );
9842
+ val = clamp$1( val, -65504, 65504 );
9843
9843
 
9844
9844
  _tables.floatView[ 0 ] = val;
9845
9845
  const f = _tables.uint32View[ 0 ];
@@ -11066,7 +11066,7 @@ class BufferGeometry extends EventDispatcher {
11066
11066
 
11067
11067
  tmp2.crossVectors( n2, t );
11068
11068
  const test = tmp2.dot( tan2[ v ] );
11069
- const w = ( test < 0.0 ) ? - 1.0 : 1.0;
11069
+ const w = ( test < 0.0 ) ? -1 : 1.0;
11070
11070
 
11071
11071
  tangentAttribute.setXYZW( v, tmp.x, tmp.y, tmp.z, w );
11072
11072
 
@@ -11908,7 +11908,7 @@ function checkGeometryIntersection( object, material, raycaster, ray, uv, uv1, n
11908
11908
 
11909
11909
  if ( intersection.normal.dot( ray.direction ) > 0 ) {
11910
11910
 
11911
- intersection.normal.multiplyScalar( - 1 );
11911
+ intersection.normal.multiplyScalar( -1 );
11912
11912
 
11913
11913
  }
11914
11914
 
@@ -11972,12 +11972,12 @@ class BoxGeometry extends BufferGeometry {
11972
11972
 
11973
11973
  // build each side of the box geometry
11974
11974
 
11975
- buildPlane( 'z', 'y', 'x', - 1, - 1, depth, height, width, depthSegments, heightSegments, 0 ); // px
11976
- buildPlane( 'z', 'y', 'x', 1, - 1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
11975
+ buildPlane( 'z', 'y', 'x', -1, -1, depth, height, width, depthSegments, heightSegments, 0 ); // px
11976
+ buildPlane( 'z', 'y', 'x', 1, -1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
11977
11977
  buildPlane( 'x', 'z', 'y', 1, 1, width, depth, height, widthSegments, depthSegments, 2 ); // py
11978
- buildPlane( 'x', 'z', 'y', 1, - 1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
11979
- buildPlane( 'x', 'y', 'z', 1, - 1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
11980
- buildPlane( 'x', 'y', 'z', - 1, - 1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
11978
+ buildPlane( 'x', 'z', 'y', 1, -1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
11979
+ buildPlane( 'x', 'y', 'z', 1, -1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
11980
+ buildPlane( 'x', 'y', 'z', -1, -1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
11981
11981
 
11982
11982
  // build geometry
11983
11983
 
@@ -12027,7 +12027,7 @@ class BoxGeometry extends BufferGeometry {
12027
12027
 
12028
12028
  vector[ u ] = 0;
12029
12029
  vector[ v ] = 0;
12030
- vector[ w ] = depth > 0 ? 1 : - 1;
12030
+ vector[ w ] = depth > 0 ? 1 : -1;
12031
12031
 
12032
12032
  // now apply vector to normal buffer
12033
12033
 
@@ -12535,7 +12535,7 @@ class PerspectiveCamera extends Camera {
12535
12535
  */
12536
12536
  getViewBounds( distance, minTarget, maxTarget ) {
12537
12537
 
12538
- _v3$1.set( - 1, - 1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
12538
+ _v3$1.set( -1, -1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
12539
12539
 
12540
12540
  minTarget.set( _v3$1.x, _v3$1.y ).multiplyScalar( - distance / _v3$1.z );
12541
12541
 
@@ -12640,7 +12640,7 @@ class PerspectiveCamera extends Camera {
12640
12640
  let top = near * Math.tan( DEG2RAD * 0.5 * this.fov ) / this.zoom;
12641
12641
  let height = 2 * top;
12642
12642
  let width = this.aspect * height;
12643
- let left = - 0.5 * width;
12643
+ let left = -0.5 * width;
12644
12644
  const view = this.view;
12645
12645
 
12646
12646
  if ( this.view !== null && this.view.enabled ) {
@@ -12688,7 +12688,7 @@ class PerspectiveCamera extends Camera {
12688
12688
 
12689
12689
  }
12690
12690
 
12691
- const fov = - 90; // negative fov is not an error
12691
+ const fov = -90; // negative fov is not an error
12692
12692
  const aspect = 1;
12693
12693
 
12694
12694
  class CubeCamera extends Object3D {
@@ -12745,39 +12745,39 @@ class CubeCamera extends Object3D {
12745
12745
  cameraPX.lookAt( 1, 0, 0 );
12746
12746
 
12747
12747
  cameraNX.up.set( 0, 1, 0 );
12748
- cameraNX.lookAt( - 1, 0, 0 );
12748
+ cameraNX.lookAt( -1, 0, 0 );
12749
12749
 
12750
- cameraPY.up.set( 0, 0, - 1 );
12750
+ cameraPY.up.set( 0, 0, -1 );
12751
12751
  cameraPY.lookAt( 0, 1, 0 );
12752
12752
 
12753
12753
  cameraNY.up.set( 0, 0, 1 );
12754
- cameraNY.lookAt( 0, - 1, 0 );
12754
+ cameraNY.lookAt( 0, -1, 0 );
12755
12755
 
12756
12756
  cameraPZ.up.set( 0, 1, 0 );
12757
12757
  cameraPZ.lookAt( 0, 0, 1 );
12758
12758
 
12759
12759
  cameraNZ.up.set( 0, 1, 0 );
12760
- cameraNZ.lookAt( 0, 0, - 1 );
12760
+ cameraNZ.lookAt( 0, 0, -1 );
12761
12761
 
12762
12762
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
12763
12763
 
12764
- cameraPX.up.set( 0, - 1, 0 );
12765
- cameraPX.lookAt( - 1, 0, 0 );
12764
+ cameraPX.up.set( 0, -1, 0 );
12765
+ cameraPX.lookAt( -1, 0, 0 );
12766
12766
 
12767
- cameraNX.up.set( 0, - 1, 0 );
12767
+ cameraNX.up.set( 0, -1, 0 );
12768
12768
  cameraNX.lookAt( 1, 0, 0 );
12769
12769
 
12770
12770
  cameraPY.up.set( 0, 0, 1 );
12771
12771
  cameraPY.lookAt( 0, 1, 0 );
12772
12772
 
12773
- cameraNY.up.set( 0, 0, - 1 );
12774
- cameraNY.lookAt( 0, - 1, 0 );
12773
+ cameraNY.up.set( 0, 0, -1 );
12774
+ cameraNY.lookAt( 0, -1, 0 );
12775
12775
 
12776
- cameraPZ.up.set( 0, - 1, 0 );
12776
+ cameraPZ.up.set( 0, -1, 0 );
12777
12777
  cameraPZ.lookAt( 0, 0, 1 );
12778
12778
 
12779
- cameraNZ.up.set( 0, - 1, 0 );
12780
- cameraNZ.lookAt( 0, 0, - 1 );
12779
+ cameraNZ.up.set( 0, -1, 0 );
12780
+ cameraNZ.lookAt( 0, 0, -1 );
12781
12781
 
12782
12782
  } else {
12783
12783
 
@@ -13742,10 +13742,10 @@ class Sprite extends Object3D {
13742
13742
  _geometry$1 = new BufferGeometry();
13743
13743
 
13744
13744
  const float32Array = new Float32Array( [
13745
- - 0.5, - 0.5, 0, 0, 0,
13746
- 0.5, - 0.5, 0, 1, 0,
13745
+ -0.5, -0.5, 0, 0, 0,
13746
+ 0.5, -0.5, 0, 1, 0,
13747
13747
  0.5, 0.5, 0, 1, 1,
13748
- - 0.5, 0.5, 0, 0, 1
13748
+ -0.5, 0.5, 0, 0, 1
13749
13749
  ] );
13750
13750
 
13751
13751
  const interleavedBuffer = new InterleavedBuffer( float32Array, 5 );
@@ -13796,8 +13796,8 @@ class Sprite extends Object3D {
13796
13796
 
13797
13797
  const center = this.center;
13798
13798
 
13799
- transformVertex( _vA.set( - 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13800
- transformVertex( _vB.set( 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13799
+ transformVertex( _vA.set( -0.5, -0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13800
+ transformVertex( _vB.set( 0.5, -0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13801
13801
  transformVertex( _vC.set( 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13802
13802
 
13803
13803
  _uvA.set( 0, 0 );
@@ -13810,7 +13810,7 @@ class Sprite extends Object3D {
13810
13810
  if ( intersect === null ) {
13811
13811
 
13812
13812
  // check second triangle
13813
- transformVertex( _vB.set( - 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13813
+ transformVertex( _vB.set( -0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
13814
13814
  _uvB.set( 0, 1 );
13815
13815
 
13816
13816
  intersect = raycaster.ray.intersectTriangle( _vA, _vC, _vB, false, _intersectPoint );
@@ -15038,7 +15038,7 @@ class Plane {
15038
15038
 
15039
15039
  negate() {
15040
15040
 
15041
- this.constant *= - 1;
15041
+ this.constant *= -1;
15042
15042
  this.normal.negate();
15043
15043
 
15044
15044
  return this;
@@ -15369,10 +15369,10 @@ class MultiDrawRenderList {
15369
15369
 
15370
15370
  pool.push( {
15371
15371
 
15372
- start: - 1,
15373
- count: - 1,
15374
- z: - 1,
15375
- index: - 1,
15372
+ start: -1,
15373
+ count: -1,
15374
+ z: -1,
15375
+ index: -1,
15376
15376
 
15377
15377
  } );
15378
15378
 
@@ -15721,7 +15721,7 @@ class BatchedMesh extends Mesh {
15721
15721
 
15722
15722
  }
15723
15723
 
15724
- addGeometry( geometry, vertexCount = - 1, indexCount = - 1 ) {
15724
+ addGeometry( geometry, vertexCount = -1, indexCount = -1 ) {
15725
15725
 
15726
15726
  this._initializeGeometry( geometry );
15727
15727
 
@@ -15736,10 +15736,10 @@ class BatchedMesh extends Mesh {
15736
15736
 
15737
15737
  // get the necessary range fo the geometry
15738
15738
  const reservedRange = {
15739
- vertexStart: - 1,
15740
- vertexCount: - 1,
15741
- indexStart: - 1,
15742
- indexCount: - 1,
15739
+ vertexStart: -1,
15740
+ vertexCount: -1,
15741
+ indexStart: -1,
15742
+ indexCount: -1,
15743
15743
  };
15744
15744
 
15745
15745
  let lastRange = null;
@@ -15752,7 +15752,7 @@ class BatchedMesh extends Mesh {
15752
15752
 
15753
15753
  }
15754
15754
 
15755
- if ( vertexCount === - 1 ) {
15755
+ if ( vertexCount === -1 ) {
15756
15756
 
15757
15757
  reservedRange.vertexCount = geometry.getAttribute( 'position' ).count;
15758
15758
 
@@ -15776,7 +15776,7 @@ class BatchedMesh extends Mesh {
15776
15776
  const hasIndex = index !== null;
15777
15777
  if ( hasIndex ) {
15778
15778
 
15779
- if ( indexCount === - 1 ) {
15779
+ if ( indexCount === -1 ) {
15780
15780
 
15781
15781
  reservedRange.indexCount = index.count;
15782
15782
 
@@ -15799,7 +15799,7 @@ class BatchedMesh extends Mesh {
15799
15799
  }
15800
15800
 
15801
15801
  if (
15802
- reservedRange.indexStart !== - 1 &&
15802
+ reservedRange.indexStart !== -1 &&
15803
15803
  reservedRange.indexStart + reservedRange.indexCount > this._maxIndexCount ||
15804
15804
  reservedRange.vertexStart + reservedRange.vertexCount > this._maxVertexCount
15805
15805
  ) {
@@ -15816,7 +15816,7 @@ class BatchedMesh extends Mesh {
15816
15816
  reservedRanges.push( reservedRange );
15817
15817
  drawRanges.push( {
15818
15818
  start: hasIndex ? reservedRange.indexStart : reservedRange.vertexStart,
15819
- count: - 1
15819
+ count: -1
15820
15820
  } );
15821
15821
  bounds.push( {
15822
15822
  boxInitialized: false,
@@ -16200,7 +16200,7 @@ class BatchedMesh extends Mesh {
16200
16200
  const drawInfo = this._drawInfo;
16201
16201
  if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {
16202
16202
 
16203
- return - 1;
16203
+ return -1;
16204
16204
 
16205
16205
  }
16206
16206
 
@@ -16396,7 +16396,7 @@ class BatchedMesh extends Mesh {
16396
16396
  // get the camera position in the local frame
16397
16397
  _invMatrixWorld.copy( this.matrixWorld ).invert();
16398
16398
  _vector$5.setFromMatrixPosition( camera.matrixWorld ).applyMatrix4( _invMatrixWorld );
16399
- _forward.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld ).transformDirection( _invMatrixWorld );
16399
+ _forward.set( 0, 0, -1 ).transformDirection( camera.matrixWorld ).transformDirection( _invMatrixWorld );
16400
16400
 
16401
16401
  for ( let i = 0, l = drawInfo.length; i < l; i ++ ) {
16402
16402
 
@@ -17597,7 +17597,7 @@ class Curve {
17597
17597
 
17598
17598
  vec.normalize();
17599
17599
 
17600
- const theta = Math.acos( clamp$1( tangents[ i - 1 ].dot( tangents[ i ] ), - 1, 1 ) ); // clamp for floating pt errors
17600
+ const theta = Math.acos( clamp$1( tangents[ i - 1 ].dot( tangents[ i ] ), -1, 1 ) ); // clamp for floating pt errors
17601
17601
 
17602
17602
  normals[ i ].applyMatrix4( mat.makeRotationAxis( vec, theta ) );
17603
17603
 
@@ -17611,7 +17611,7 @@ class Curve {
17611
17611
 
17612
17612
  if ( closed === true ) {
17613
17613
 
17614
- let theta = Math.acos( clamp$1( normals[ 0 ].dot( normals[ segments ] ), - 1, 1 ) );
17614
+ let theta = Math.acos( clamp$1( normals[ 0 ].dot( normals[ segments ] ), -1, 1 ) );
17615
17615
  theta /= segments;
17616
17616
 
17617
17617
  if ( tangents[ 0 ].dot( vec.crossVectors( normals[ 0 ], normals[ segments ] ) ) > 0 ) {
@@ -17881,7 +17881,7 @@ function CubicPoly() {
17881
17881
 
17882
17882
  c0 = x0;
17883
17883
  c1 = t0;
17884
- c2 = - 3 * x0 + 3 * x1 - 2 * t0 - t1;
17884
+ c2 = -3 * x0 + 3 * x1 - 2 * t0 - t1;
17885
17885
  c3 = 2 * x0 - 2 * x1 + t0 + t1;
17886
17886
 
17887
17887
  }
@@ -18107,7 +18107,7 @@ function CatmullRom( t, p0, p1, p2, p3 ) {
18107
18107
  const v1 = ( p3 - p1 ) * 0.5;
18108
18108
  const t2 = t * t;
18109
18109
  const t3 = t * t2;
18110
- return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( - 3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1;
18110
+ return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( -3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1;
18111
18111
 
18112
18112
  }
18113
18113
 
@@ -19180,7 +19180,7 @@ class Path extends CurvePath {
19180
19180
 
19181
19181
  class LatheGeometry extends BufferGeometry {
19182
19182
 
19183
- constructor( points = [ new Vector2( 0, - 0.5 ), new Vector2( 0.5, 0 ), new Vector2( 0, 0.5 ) ], segments = 12, phiStart = 0, phiLength = Math.PI * 2 ) {
19183
+ constructor( points = [ new Vector2( 0, -0.5 ), new Vector2( 0.5, 0 ), new Vector2( 0, 0.5 ) ], segments = 12, phiStart = 0, phiLength = Math.PI * 2 ) {
19184
19184
 
19185
19185
  super();
19186
19186
 
@@ -19651,7 +19651,7 @@ class CylinderGeometry extends BufferGeometry {
19651
19651
  let groupCount = 0;
19652
19652
 
19653
19653
  const radius = ( top === true ) ? radiusTop : radiusBottom;
19654
- const sign = ( top === true ) ? 1 : - 1;
19654
+ const sign = ( top === true ) ? 1 : -1;
19655
19655
 
19656
19656
  // first we generate the center vertex data of the cap.
19657
19657
  // because the geometry needs one set of uvs per face,
@@ -20119,10 +20119,10 @@ class DodecahedronGeometry extends PolyhedronGeometry {
20119
20119
  const vertices = [
20120
20120
 
20121
20121
  // (±1, ±1, ±1)
20122
- - 1, - 1, - 1, - 1, - 1, 1,
20123
- - 1, 1, - 1, - 1, 1, 1,
20124
- 1, - 1, - 1, 1, - 1, 1,
20125
- 1, 1, - 1, 1, 1, 1,
20122
+ -1, -1, -1, -1, -1, 1,
20123
+ -1, 1, -1, -1, 1, 1,
20124
+ 1, -1, -1, 1, -1, 1,
20125
+ 1, 1, -1, 1, 1, 1,
20126
20126
 
20127
20127
  // (0, ±1/φ, ±φ)
20128
20128
  0, - r, - t, 0, - r, t,
@@ -21055,7 +21055,7 @@ function onSegment( p, q, r ) {
21055
21055
 
21056
21056
  function sign$1( num ) {
21057
21057
 
21058
- return num > 0 ? 1 : num < 0 ? - 1 : 0;
21058
+ return num > 0 ? 1 : num < 0 ? -1 : 0;
21059
21059
 
21060
21060
  }
21061
21061
 
@@ -21315,7 +21315,7 @@ function addContour( vertices, contour ) {
21315
21315
 
21316
21316
  class ExtrudeGeometry extends BufferGeometry {
21317
21317
 
21318
- constructor( shapes = new Shape( [ new Vector2( 0.5, 0.5 ), new Vector2( - 0.5, 0.5 ), new Vector2( - 0.5, - 0.5 ), new Vector2( 0.5, - 0.5 ) ] ), options = {} ) {
21318
+ constructor( shapes = new Shape( [ new Vector2( 0.5, 0.5 ), new Vector2( -0.5, 0.5 ), new Vector2( -0.5, -0.5 ), new Vector2( 0.5, -0.5 ) ] ), options = {} ) {
21319
21319
 
21320
21320
  super();
21321
21321
 
@@ -22102,9 +22102,9 @@ class IcosahedronGeometry extends PolyhedronGeometry {
22102
22102
  const t = ( 1 + Math.sqrt( 5 ) ) / 2;
22103
22103
 
22104
22104
  const vertices = [
22105
- - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0,
22106
- 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t,
22107
- t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1
22105
+ -1, t, 0, 1, t, 0, -1, - t, 0, 1, - t, 0,
22106
+ 0, -1, t, 0, 1, t, 0, -1, - t, 0, 1, - t,
22107
+ t, 0, -1, t, 0, 1, - t, 0, -1, - t, 0, 1
22108
22108
  ];
22109
22109
 
22110
22110
  const indices = [
@@ -22138,8 +22138,8 @@ class OctahedronGeometry extends PolyhedronGeometry {
22138
22138
  constructor( radius = 1, detail = 0 ) {
22139
22139
 
22140
22140
  const vertices = [
22141
- 1, 0, 0, - 1, 0, 0, 0, 1, 0,
22142
- 0, - 1, 0, 0, 0, 1, 0, 0, - 1
22141
+ 1, 0, 0, -1, 0, 0, 0, 1, 0,
22142
+ 0, -1, 0, 0, 0, 1, 0, 0, -1
22143
22143
  ];
22144
22144
 
22145
22145
  const indices = [
@@ -22384,7 +22384,7 @@ class RingGeometry extends BufferGeometry {
22384
22384
 
22385
22385
  class ShapeGeometry extends BufferGeometry {
22386
22386
 
22387
- constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( - 0.5, - 0.5 ), new Vector2( 0.5, - 0.5 ) ] ), curveSegments = 12 ) {
22387
+ constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( -0.5, -0.5 ), new Vector2( 0.5, -0.5 ) ] ), curveSegments = 12 ) {
22388
22388
 
22389
22389
  super();
22390
22390
 
@@ -22624,7 +22624,7 @@ class SphereGeometry extends BufferGeometry {
22624
22624
 
22625
22625
  } else if ( iy === heightSegments && thetaEnd === Math.PI ) {
22626
22626
 
22627
- uOffset = - 0.5 / widthSegments;
22627
+ uOffset = -0.5 / widthSegments;
22628
22628
 
22629
22629
  }
22630
22630
 
@@ -22707,7 +22707,7 @@ class TetrahedronGeometry extends PolyhedronGeometry {
22707
22707
  constructor( radius = 1, detail = 0 ) {
22708
22708
 
22709
22709
  const vertices = [
22710
- 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1
22710
+ 1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1
22711
22711
  ];
22712
22712
 
22713
22713
  const indices = [
@@ -23012,7 +23012,7 @@ class TorusKnotGeometry extends BufferGeometry {
23012
23012
 
23013
23013
  class TubeGeometry extends BufferGeometry {
23014
23014
 
23015
- constructor( path = new QuadraticBezierCurve3( new Vector3( - 1, - 1, 0 ), new Vector3( - 1, 1, 0 ), new Vector3( 1, 1, 0 ) ), tubularSegments = 64, radius = 1, radialSegments = 8, closed = false ) {
23015
+ constructor( path = new QuadraticBezierCurve3( new Vector3( -1, -1, 0 ), new Vector3( -1, 1, 0 ), new Vector3( 1, 1, 0 ) ), tubularSegments = 64, radius = 1, radialSegments = 8, closed = false ) {
23016
23016
 
23017
23017
  super();
23018
23018
 
@@ -24553,7 +24553,7 @@ function subclip( sourceClip, name, startFrame, endFrame, fps = 30 ) {
24553
24553
 
24554
24554
  for ( let i = 0; i < clip.tracks.length; ++ i ) {
24555
24555
 
24556
- clip.tracks[ i ].shift( - 1 * minStartTime );
24556
+ clip.tracks[ i ].shift( -1 * minStartTime );
24557
24557
 
24558
24558
  }
24559
24559
 
@@ -24950,10 +24950,10 @@ class CubicInterpolant extends Interpolant {
24950
24950
 
24951
24951
  super( parameterPositions, sampleValues, sampleSize, resultBuffer );
24952
24952
 
24953
- this._weightPrev = - 0;
24954
- this._offsetPrev = - 0;
24955
- this._weightNext = - 0;
24956
- this._offsetNext = - 0;
24953
+ this._weightPrev = -0;
24954
+ this._offsetPrev = -0;
24955
+ this._weightNext = -0;
24956
+ this._offsetNext = -0;
24957
24957
 
24958
24958
  this.DefaultSettings_ = {
24959
24959
 
@@ -25060,8 +25060,8 @@ class CubicInterpolant extends Interpolant {
25060
25060
  // evaluate polynomials
25061
25061
 
25062
25062
  const sP = - wP * ppp + 2 * wP * pp - wP * p;
25063
- const s0 = ( 1 + wP ) * ppp + ( - 1.5 - 2 * wP ) * pp + ( - 0.5 + wP ) * p + 1;
25064
- const s1 = ( - 1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p;
25063
+ const s0 = ( 1 + wP ) * ppp + ( -1.5 - 2 * wP ) * pp + ( -0.5 + wP ) * p + 1;
25064
+ const s1 = ( -1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p;
25065
25065
  const sN = wN * ppp - wN * pp;
25066
25066
 
25067
25067
  // combine data linearly
@@ -25350,7 +25350,7 @@ class KeyframeTrack {
25350
25350
 
25351
25351
  }
25352
25352
 
25353
- while ( to !== - 1 && times[ to ] > endTime ) {
25353
+ while ( to !== -1 && times[ to ] > endTime ) {
25354
25354
 
25355
25355
  -- to;
25356
25356
 
@@ -25704,7 +25704,7 @@ VectorKeyframeTrack.prototype.ValueTypeName = 'vector';
25704
25704
 
25705
25705
  class AnimationClip {
25706
25706
 
25707
- constructor( name = '', duration = - 1, tracks = [], blendMode = NormalAnimationBlendMode ) {
25707
+ constructor( name = '', duration = -1, tracks = [], blendMode = NormalAnimationBlendMode ) {
25708
25708
 
25709
25709
  this.name = name;
25710
25710
  this.tracks = tracks;
@@ -25805,7 +25805,7 @@ class AnimationClip {
25805
25805
 
25806
25806
  }
25807
25807
 
25808
- return new this( name, - 1, tracks );
25808
+ return new this( name, -1, tracks );
25809
25809
 
25810
25810
  }
25811
25811
 
@@ -25917,7 +25917,7 @@ class AnimationClip {
25917
25917
  const blendMode = animation.blendMode;
25918
25918
 
25919
25919
  // automatic length determination in AnimationClip.
25920
- let duration = animation.length || - 1;
25920
+ let duration = animation.length || -1;
25921
25921
 
25922
25922
  const hierarchyTracks = animation.hierarchy || [];
25923
25923
 
@@ -25942,7 +25942,7 @@ class AnimationClip {
25942
25942
 
25943
25943
  for ( let m = 0; m < animationKeys[ k ].morphTargets.length; m ++ ) {
25944
25944
 
25945
- morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = - 1;
25945
+ morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = -1;
25946
25946
 
25947
25947
  }
25948
25948
 
@@ -26307,7 +26307,7 @@ class LoadingManager {
26307
26307
 
26308
26308
  const index = handlers.indexOf( regex );
26309
26309
 
26310
- if ( index !== - 1 ) {
26310
+ if ( index !== -1 ) {
26311
26311
 
26312
26312
  handlers.splice( index, 2 );
26313
26313
 
@@ -27563,13 +27563,13 @@ class PointLightShadow extends LightShadow {
27563
27563
  ];
27564
27564
 
27565
27565
  this._cubeDirections = [
27566
- new Vector3( 1, 0, 0 ), new Vector3( - 1, 0, 0 ), new Vector3( 0, 0, 1 ),
27567
- new Vector3( 0, 0, - 1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, - 1, 0 )
27566
+ new Vector3( 1, 0, 0 ), new Vector3( -1, 0, 0 ), new Vector3( 0, 0, 1 ),
27567
+ new Vector3( 0, 0, -1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, -1, 0 )
27568
27568
  ];
27569
27569
 
27570
27570
  this._cubeUps = [
27571
27571
  new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ),
27572
- new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, - 1 )
27572
+ new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, -1 )
27573
27573
  ];
27574
27574
 
27575
27575
  }
@@ -27661,7 +27661,7 @@ class PointLight extends Light {
27661
27661
 
27662
27662
  class OrthographicCamera extends Camera {
27663
27663
 
27664
- constructor( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
27664
+ constructor( left = -1, right = 1, top = 1, bottom = -1, near = 0.1, far = 2000 ) {
27665
27665
 
27666
27666
  super();
27667
27667
 
@@ -27796,7 +27796,7 @@ class DirectionalLightShadow extends LightShadow {
27796
27796
 
27797
27797
  constructor() {
27798
27798
 
27799
- super( new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );
27799
+ super( new OrthographicCamera( -5, 5, 5, -5, 0.5, 500 ) );
27800
27800
 
27801
27801
  this.isDirectionalLightShadow = true;
27802
27802
 
@@ -28584,7 +28584,7 @@ class LoaderUtils {
28584
28584
 
28585
28585
  const index = url.lastIndexOf( '/' );
28586
28586
 
28587
- if ( index === - 1 ) return './';
28587
+ if ( index === -1 ) return './';
28588
28588
 
28589
28589
  return url.slice( 0, index + 1 );
28590
28590
 
@@ -30465,7 +30465,7 @@ class AudioListener extends Object3D {
30465
30465
  if ( ! Number.isFinite( _position$1.x ) || ! Number.isFinite( _position$1.y ) || ! Number.isFinite( _position$1.z ) )
30466
30466
  return;
30467
30467
 
30468
- _orientation$1.set( 0, 0, - 1 ).applyQuaternion( _quaternion$1 );
30468
+ _orientation$1.set( 0, 0, -1 ).applyQuaternion( _quaternion$1 );
30469
30469
 
30470
30470
  if ( listener.positionX ) {
30471
30471
 
@@ -31553,7 +31553,7 @@ class PropertyBinding {
31553
31553
 
31554
31554
  const lastDot = results.nodeName && results.nodeName.lastIndexOf( '.' );
31555
31555
 
31556
- if ( lastDot !== undefined && lastDot !== - 1 ) {
31556
+ if ( lastDot !== undefined && lastDot !== -1 ) {
31557
31557
 
31558
31558
  const objectName = results.nodeName.substring( lastDot + 1 );
31559
31559
 
@@ -31561,7 +31561,7 @@ class PropertyBinding {
31561
31561
  // is no way to parse 'foo.bar.baz': 'baz' must be a property, but
31562
31562
  // 'bar' could be the objectName, or part of a nodeName (which can
31563
31563
  // include '.' characters).
31564
- if ( _supportedObjectNames.indexOf( objectName ) !== - 1 ) {
31564
+ if ( _supportedObjectNames.indexOf( objectName ) !== -1 ) {
31565
31565
 
31566
31566
  results.nodeName = results.nodeName.substring( 0, lastDot );
31567
31567
  results.objectName = objectName;
@@ -31582,7 +31582,7 @@ class PropertyBinding {
31582
31582
 
31583
31583
  static findNode( root, nodeName ) {
31584
31584
 
31585
- if ( nodeName === undefined || nodeName === '' || nodeName === '.' || nodeName === - 1 || nodeName === root.name || nodeName === root.uuid ) {
31585
+ if ( nodeName === undefined || nodeName === '' || nodeName === '.' || nodeName === -1 || nodeName === root.name || nodeName === root.uuid ) {
31586
31586
 
31587
31587
  return root;
31588
31588
 
@@ -32541,7 +32541,7 @@ class AnimationAction {
32541
32541
  this._weightInterpolant = null;
32542
32542
 
32543
32543
  this.loop = LoopRepeat;
32544
- this._loopCount = - 1;
32544
+ this._loopCount = -1;
32545
32545
 
32546
32546
  // global mixer time when the action is to be started
32547
32547
  // it's set back to 'null' upon start of the action
@@ -32593,7 +32593,7 @@ class AnimationAction {
32593
32593
  this.enabled = true;
32594
32594
 
32595
32595
  this.time = 0; // restart clip
32596
- this._loopCount = - 1;// forget previous loops
32596
+ this._loopCount = -1;// forget previous loops
32597
32597
  this._startTime = null;// forget scheduling
32598
32598
 
32599
32599
  return this.stopFading().stopWarping();
@@ -32988,7 +32988,7 @@ class AnimationAction {
32988
32988
 
32989
32989
  if ( deltaTime === 0 ) {
32990
32990
 
32991
- if ( loopCount === - 1 ) return time;
32991
+ if ( loopCount === -1 ) return time;
32992
32992
 
32993
32993
  return ( pingPong && ( loopCount & 1 ) === 1 ) ? duration - time : time;
32994
32994
 
@@ -32996,7 +32996,7 @@ class AnimationAction {
32996
32996
 
32997
32997
  if ( loop === LoopOnce ) {
32998
32998
 
32999
- if ( loopCount === - 1 ) {
32999
+ if ( loopCount === -1 ) {
33000
33000
 
33001
33001
  // just started
33002
33002
 
@@ -33030,14 +33030,14 @@ class AnimationAction {
33030
33030
 
33031
33031
  this._mixer.dispatchEvent( {
33032
33032
  type: 'finished', action: this,
33033
- direction: deltaTime < 0 ? - 1 : 1
33033
+ direction: deltaTime < 0 ? -1 : 1
33034
33034
  } );
33035
33035
 
33036
33036
  }
33037
33037
 
33038
33038
  } else { // repetitive Repeat or PingPong
33039
33039
 
33040
- if ( loopCount === - 1 ) {
33040
+ if ( loopCount === -1 ) {
33041
33041
 
33042
33042
  // just started
33043
33043
 
@@ -33083,7 +33083,7 @@ class AnimationAction {
33083
33083
 
33084
33084
  this._mixer.dispatchEvent( {
33085
33085
  type: 'finished', action: this,
33086
- direction: deltaTime > 0 ? 1 : - 1
33086
+ direction: deltaTime > 0 ? 1 : -1
33087
33087
  } );
33088
33088
 
33089
33089
  } else {
@@ -34003,7 +34003,7 @@ let UniformsGroup$1 = class UniformsGroup extends EventDispatcher {
34003
34003
 
34004
34004
  const index = this.uniforms.indexOf( uniform );
34005
34005
 
34006
- if ( index !== - 1 ) this.uniforms.splice( index, 1 );
34006
+ if ( index !== -1 ) this.uniforms.splice( index, 1 );
34007
34007
 
34008
34008
  return this;
34009
34009
 
@@ -34213,7 +34213,7 @@ class Raycaster {
34213
34213
  } else if ( camera.isOrthographicCamera ) {
34214
34214
 
34215
34215
  this.ray.origin.set( coords.x, coords.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) ).unproject( camera ); // set origin in plane of camera
34216
- this.ray.direction.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld );
34216
+ this.ray.direction.set( 0, 0, -1 ).transformDirection( camera.matrixWorld );
34217
34217
  this.camera = camera;
34218
34218
 
34219
34219
  } else {
@@ -34229,7 +34229,7 @@ class Raycaster {
34229
34229
  _matrix.identity().extractRotation( controller.matrixWorld );
34230
34230
 
34231
34231
  this.ray.origin.setFromMatrixPosition( controller.matrixWorld );
34232
- this.ray.direction.set( 0, 0, - 1 ).applyMatrix4( _matrix );
34232
+ this.ray.direction.set( 0, 0, -1 ).applyMatrix4( _matrix );
34233
34233
 
34234
34234
  return this;
34235
34235
 
@@ -34359,7 +34359,7 @@ class Spherical {
34359
34359
  } else {
34360
34360
 
34361
34361
  this.theta = Math.atan2( x, z );
34362
- this.phi = Math.acos( clamp$1( y / this.radius, - 1, 1 ) );
34362
+ this.phi = Math.acos( clamp$1( y / this.radius, -1, 1 ) );
34363
34363
 
34364
34364
  }
34365
34365
 
@@ -34823,9 +34823,9 @@ class SpotLightHelper extends Object3D {
34823
34823
  const positions = [
34824
34824
  0, 0, 0, 0, 0, 1,
34825
34825
  0, 0, 0, 1, 0, 1,
34826
- 0, 0, 0, - 1, 0, 1,
34826
+ 0, 0, 0, -1, 0, 1,
34827
34827
  0, 0, 0, 0, 1, 1,
34828
- 0, 0, 0, 0, - 1, 1
34828
+ 0, 0, 0, 0, -1, 1
34829
34829
  ];
34830
34830
 
34831
34831
  for ( let i = 0, j = 1, l = 32; i < l; i ++, j ++ ) {
@@ -35597,40 +35597,40 @@ class CameraHelper extends LineSegments {
35597
35597
 
35598
35598
  // center / target
35599
35599
 
35600
- setPoint( 'c', pointMap, geometry, _camera$1, 0, 0, - 1 );
35600
+ setPoint( 'c', pointMap, geometry, _camera$1, 0, 0, -1 );
35601
35601
  setPoint( 't', pointMap, geometry, _camera$1, 0, 0, 1 );
35602
35602
 
35603
35603
  // near
35604
35604
 
35605
- setPoint( 'n1', pointMap, geometry, _camera$1, - w, - h, - 1 );
35606
- setPoint( 'n2', pointMap, geometry, _camera$1, w, - h, - 1 );
35607
- setPoint( 'n3', pointMap, geometry, _camera$1, - w, h, - 1 );
35608
- setPoint( 'n4', pointMap, geometry, _camera$1, w, h, - 1 );
35605
+ setPoint( 'n1', pointMap, geometry, _camera$1, -1, -1, -1 );
35606
+ setPoint( 'n2', pointMap, geometry, _camera$1, w, -1, -1 );
35607
+ setPoint( 'n3', pointMap, geometry, _camera$1, -1, h, -1 );
35608
+ setPoint( 'n4', pointMap, geometry, _camera$1, w, h, -1 );
35609
35609
 
35610
35610
  // far
35611
35611
 
35612
- setPoint( 'f1', pointMap, geometry, _camera$1, - w, - h, 1 );
35613
- setPoint( 'f2', pointMap, geometry, _camera$1, w, - h, 1 );
35614
- setPoint( 'f3', pointMap, geometry, _camera$1, - w, h, 1 );
35612
+ setPoint( 'f1', pointMap, geometry, _camera$1, -1, -1, 1 );
35613
+ setPoint( 'f2', pointMap, geometry, _camera$1, w, -1, 1 );
35614
+ setPoint( 'f3', pointMap, geometry, _camera$1, -1, h, 1 );
35615
35615
  setPoint( 'f4', pointMap, geometry, _camera$1, w, h, 1 );
35616
35616
 
35617
35617
  // up
35618
35618
 
35619
- setPoint( 'u1', pointMap, geometry, _camera$1, w * 0.7, h * 1.1, - 1 );
35620
- setPoint( 'u2', pointMap, geometry, _camera$1, - w * 0.7, h * 1.1, - 1 );
35621
- setPoint( 'u3', pointMap, geometry, _camera$1, 0, h * 2, - 1 );
35619
+ setPoint( 'u1', pointMap, geometry, _camera$1, w * 0.7, h * 1.1, -1 );
35620
+ setPoint( 'u2', pointMap, geometry, _camera$1, -1 * 0.7, h * 1.1, -1 );
35621
+ setPoint( 'u3', pointMap, geometry, _camera$1, 0, h * 2, -1 );
35622
35622
 
35623
35623
  // cross
35624
35624
 
35625
- setPoint( 'cf1', pointMap, geometry, _camera$1, - w, 0, 1 );
35625
+ setPoint( 'cf1', pointMap, geometry, _camera$1, -1, 0, 1 );
35626
35626
  setPoint( 'cf2', pointMap, geometry, _camera$1, w, 0, 1 );
35627
- setPoint( 'cf3', pointMap, geometry, _camera$1, 0, - h, 1 );
35627
+ setPoint( 'cf3', pointMap, geometry, _camera$1, 0, -1, 1 );
35628
35628
  setPoint( 'cf4', pointMap, geometry, _camera$1, 0, h, 1 );
35629
35629
 
35630
- setPoint( 'cn1', pointMap, geometry, _camera$1, - w, 0, - 1 );
35631
- setPoint( 'cn2', pointMap, geometry, _camera$1, w, 0, - 1 );
35632
- setPoint( 'cn3', pointMap, geometry, _camera$1, 0, - h, - 1 );
35633
- setPoint( 'cn4', pointMap, geometry, _camera$1, 0, h, - 1 );
35630
+ setPoint( 'cn1', pointMap, geometry, _camera$1, -1, 0, -1 );
35631
+ setPoint( 'cn2', pointMap, geometry, _camera$1, w, 0, -1 );
35632
+ setPoint( 'cn3', pointMap, geometry, _camera$1, 0, -1, -1 );
35633
+ setPoint( 'cn4', pointMap, geometry, _camera$1, 0, h, -1 );
35634
35634
 
35635
35635
  geometry.getAttribute( 'position' ).needsUpdate = true;
35636
35636
 
@@ -35777,7 +35777,7 @@ class Box3Helper extends LineSegments {
35777
35777
 
35778
35778
  const indices = new Uint16Array( [ 0, 1, 1, 2, 2, 3, 3, 0, 4, 5, 5, 6, 6, 7, 7, 4, 0, 4, 1, 5, 2, 6, 3, 7 ] );
35779
35779
 
35780
- const positions = [ 1, 1, 1, - 1, 1, 1, - 1, - 1, 1, 1, - 1, 1, 1, 1, - 1, - 1, 1, - 1, - 1, - 1, - 1, 1, - 1, - 1 ];
35780
+ const positions = [ 1, 1, 1, -1, 1, 1, -1, -1, 1, 1, -1, 1, 1, 1, -1, -1, 1, -1, -1, -1, -1, 1, -1, -1 ];
35781
35781
 
35782
35782
  const geometry = new BufferGeometry();
35783
35783
 
@@ -35826,7 +35826,7 @@ class PlaneHelper extends Line {
35826
35826
 
35827
35827
  const color = hex;
35828
35828
 
35829
- const positions = [ 1, - 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, - 1, 0, 1, 1, 0 ];
35829
+ const positions = [ 1, -1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, -1, 0, 1, 1, 0 ];
35830
35830
 
35831
35831
  const geometry = new BufferGeometry();
35832
35832
  geometry.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) );
@@ -35840,7 +35840,7 @@ class PlaneHelper extends Line {
35840
35840
 
35841
35841
  this.size = size;
35842
35842
 
35843
- const positions2 = [ 1, 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, 1, 0, - 1, - 1, 0, 1, - 1, 0 ];
35843
+ const positions2 = [ 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0 ];
35844
35844
 
35845
35845
  const geometry2 = new BufferGeometry();
35846
35846
  geometry2.setAttribute( 'position', new Float32BufferAttribute( positions2, 3 ) );
@@ -35894,7 +35894,7 @@ class ArrowHelper extends Object3D {
35894
35894
  _lineGeometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 0, 1, 0 ], 3 ) );
35895
35895
 
35896
35896
  _coneGeometry = new CylinderGeometry( 0, 0.5, 1, 5, 1 );
35897
- _coneGeometry.translate( 0, - 0.5, 0 );
35897
+ _coneGeometry.translate( 0, -0.5, 0 );
35898
35898
 
35899
35899
  }
35900
35900
 
@@ -35921,7 +35921,7 @@ class ArrowHelper extends Object3D {
35921
35921
 
35922
35922
  this.quaternion.set( 0, 0, 0, 1 );
35923
35923
 
35924
- } else if ( dir.y < - 0.99999 ) {
35924
+ } else if ( dir.y < -0.99999 ) {
35925
35925
 
35926
35926
  this.quaternion.set( 1, 0, 0, 0 );
35927
35927
 
@@ -36332,7 +36332,7 @@ class Controls extends EventDispatcher {
36332
36332
 
36333
36333
  this.enabled = true;
36334
36334
 
36335
- this.state = - 1;
36335
+ this.state = -1;
36336
36336
 
36337
36337
  this.keys = {};
36338
36338
  this.mouseButtons = { LEFT: null, MIDDLE: null, RIGHT: null };
@@ -36728,7 +36728,7 @@ function getCacheKey$1( object, force = false ) {
36728
36728
 
36729
36729
  for ( const { property, childNode } of getNodeChildren( object ) ) {
36730
36730
 
36731
- values.push( values, cyrb53( property.slice( 0, - 4 ) ), childNode.getCacheKey( force ) );
36731
+ values.push( values, cyrb53( property.slice( 0, -4 ) ), childNode.getCacheKey( force ) );
36732
36732
 
36733
36733
  }
36734
36734
 
@@ -36845,7 +36845,7 @@ function getValueType( value ) {
36845
36845
 
36846
36846
  function getValueFromType( type, ...params ) {
36847
36847
 
36848
- const last4 = type ? type.slice( - 4 ) : undefined;
36848
+ const last4 = type ? type.slice( -4 ) : undefined;
36849
36849
 
36850
36850
  if ( params.length === 1 ) { // ensure same behaviour as in NodeBuilder.format()
36851
36851
 
@@ -38471,7 +38471,7 @@ class ShaderNodeInternal extends Node {
38471
38471
 
38472
38472
  const bools = [ false, true ];
38473
38473
  const uints = [ 0, 1, 2, 3 ];
38474
- const ints = [ - 1, - 2 ];
38474
+ const ints = [ -1, -2 ];
38475
38475
  const floats = [ 0.5, 1.5, 1 / 3, 1e-6, 1e6, Math.PI, Math.PI * 2, 1 / Math.PI, 2 / Math.PI, 1 / ( Math.PI * 2 ), Math.PI / 2 ];
38476
38476
 
38477
38477
  const boolsCacheMap = new Map();
@@ -46042,7 +46042,7 @@ class Line2NodeMaterial extends NodeMaterial {
46042
46042
 
46043
46043
  const a = cameraProjectionMatrix.element( 2 ).element( 2 ); // 3nd entry in 3th column
46044
46044
  const b = cameraProjectionMatrix.element( 3 ).element( 2 ); // 3nd entry in 4th column
46045
- const nearEstimate = b.mul( - 0.5 ).div( a );
46045
+ const nearEstimate = b.mul( -0.5 ).div( a );
46046
46046
 
46047
46047
  const alpha = nearEstimate.sub( start.z ).div( end.z.sub( start.z ) );
46048
46048
 
@@ -46081,7 +46081,7 @@ class Line2NodeMaterial extends NodeMaterial {
46081
46081
  // but we need to perform ndc-space calculations in the shader, so we must address this issue directly
46082
46082
  // perhaps there is a more elegant solution -- WestLangley
46083
46083
 
46084
- const perspective = cameraProjectionMatrix.element( 2 ).element( 3 ).equal( - 1.0 ); // 4th entry in the 3rd column
46084
+ const perspective = cameraProjectionMatrix.element( 2 ).element( 3 ).equal( -1 ); // 4th entry in the 3rd column
46085
46085
 
46086
46086
  If( perspective, () => {
46087
46087
 
@@ -46247,7 +46247,7 @@ class Line2NodeMaterial extends NodeMaterial {
46247
46247
  const vLineDistance = varying( lineDistance.add( materialLineDashOffset ) );
46248
46248
  const vLineDistanceOffset = offsetNode ? vLineDistance.add( offsetNode ) : vLineDistance;
46249
46249
 
46250
- vUv.y.lessThan( - 1.0 ).or( vUv.y.greaterThan( 1.0 ) ).discard(); // discard endcaps
46250
+ vUv.y.lessThan( -1 ).or( vUv.y.greaterThan( 1.0 ) ).discard(); // discard endcaps
46251
46251
  vLineDistanceOffset.mod( dashSize.add( gapSize ) ).greaterThan( dashSize ).discard(); // todo - FIX
46252
46252
 
46253
46253
  }
@@ -46465,7 +46465,7 @@ class EquirectUVNode extends TempNode {
46465
46465
  const dir = this.dirNode;
46466
46466
 
46467
46467
  const u = dir.z.atan2( dir.x ).mul( 1 / ( Math.PI * 2 ) ).add( 0.5 );
46468
- const v = dir.y.clamp( - 1.0, 1.0 ).asin().mul( 1 / Math.PI ).add( 0.5 );
46468
+ const v = dir.y.clamp( -1, 1.0 ).asin().mul( 1 / Math.PI ).add( 0.5 );
46469
46469
 
46470
46470
  return vec2( u, v );
46471
46471
 
@@ -46903,7 +46903,7 @@ const F_Schlick = /*@__PURE__*/ Fn( ( { f0, f90, dotVH } ) => {
46903
46903
 
46904
46904
  // Optimized variant (presented by Epic at SIGGRAPH '13)
46905
46905
  // https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf
46906
- const fresnel = dotVH.mul( - 5.55473 ).sub( 6.98316 ).mul( dotVH ).exp2();
46906
+ const fresnel = dotVH.mul( -5.55473 ).sub( 6.98316 ).mul( dotVH ).exp2();
46907
46907
 
46908
46908
  return f0.mul( fresnel.oneMinus() ).add( f90.mul( fresnel ) );
46909
46909
 
@@ -47249,15 +47249,15 @@ const BRDF_GGX = /*@__PURE__*/ Fn( ( inputs ) => {
47249
47249
  // https://www.unrealengine.com/blog/physically-based-shading-on-mobile
47250
47250
  const DFGApprox = /*@__PURE__*/ Fn( ( { roughness, dotNV } ) => {
47251
47251
 
47252
- const c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
47252
+ const c0 = vec4( -1, -0.0275, -0.572, 0.022 );
47253
47253
 
47254
- const c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
47254
+ const c1 = vec4( 1, 0.0425, 1.04, -0.04 );
47255
47255
 
47256
47256
  const r = roughness.mul( c0 ).add( c1 );
47257
47257
 
47258
- const a004 = r.x.mul( r.x ).min( dotNV.mul( - 9.28 ).exp2() ).mul( r.x ).add( r.y );
47258
+ const a004 = r.x.mul( r.x ).min( dotNV.mul( -9.28 ).exp2() ).mul( r.x ).add( r.y );
47259
47259
 
47260
- const fab = vec2( - 1.04, 1.04 ).mul( a004 ).add( r.zw );
47260
+ const fab = vec2( -1.04, 1.04 ).mul( a004 ).add( r.zw );
47261
47261
 
47262
47262
  return fab;
47263
47263
 
@@ -47483,7 +47483,7 @@ const w0 = ( a ) => mul( bC, mul( a, mul( a, a.negate().add( 3.0 ) ).sub( 3.0 )
47483
47483
 
47484
47484
  const w1 = ( a ) => mul( bC, mul( a, mul( a, mul( 3.0, a ).sub( 6.0 ) ) ).add( 4.0 ) );
47485
47485
 
47486
- const w2 = ( a ) => mul( bC, mul( a, mul( a, mul( - 3.0, a ).add( 3.0 ) ).add( 3.0 ) ).add( 1.0 ) );
47486
+ const w2 = ( a ) => mul( bC, mul( a, mul( a, mul( -3, a ).add( 3.0 ) ).add( 3.0 ) ).add( 1.0 ) );
47487
47487
 
47488
47488
  const w3 = ( a ) => mul( bC, pow( a, 3 ) );
47489
47489
 
@@ -47492,7 +47492,7 @@ const g0 = ( a ) => w0( a ).add( w1( a ) );
47492
47492
  const g1 = ( a ) => w2( a ).add( w3( a ) );
47493
47493
 
47494
47494
  // h0 and h1 are the two offset functions
47495
- const h0 = ( a ) => add( - 1.0, w1( a ).div( w0( a ).add( w1( a ) ) ) );
47495
+ const h0 = ( a ) => add( -1, w1( a ).div( w0( a ).add( w1( a ) ) ) );
47496
47496
 
47497
47497
  const h1 = ( a ) => add( 1.0, w3( a ).div( w2( a ).add( w3( a ) ) ) );
47498
47498
 
@@ -47701,9 +47701,9 @@ const getIBLVolumeRefraction = /*@__PURE__*/ Fn( ( [ n, v, roughness, diffuseCol
47701
47701
 
47702
47702
  // XYZ to linear-sRGB color space
47703
47703
  const XYZ_TO_REC709 = /*@__PURE__*/ mat3(
47704
- 3.2404542, - 0.9692660, 0.0556434,
47705
- - 1.5371385, 1.8760108, - 0.2040259,
47706
- - 0.4985314, 0.0415560, 1.0572252
47704
+ 3.2404542, -0.969266, 0.0556434,
47705
+ -1.5371385, 1.8760108, -0.2040259,
47706
+ -0.4985314, 0.0415560, 1.0572252
47707
47707
  );
47708
47708
 
47709
47709
  // Assume air interface for top
@@ -47732,7 +47732,7 @@ const evalSensitivity = ( OPD, shift ) => {
47732
47732
  const pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
47733
47733
  const VAR = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
47734
47734
 
47735
- const x = float( 9.7470e-14 * Math.sqrt( 2.0 * Math.PI * 4.5282e+09 ) ).mul( phase.mul( 2.2399e+06 ).add( shift.x ).cos() ).mul( phase.pow2().mul( - 4.5282e+09 ).exp() );
47735
+ const x = float( 9.7470e-14 * Math.sqrt( 2.0 * Math.PI * 4.5282e+09 ) ).mul( phase.mul( 2.2399e+06 ).add( shift.x ).cos() ).mul( phase.pow2().mul( -45282e5 ).exp() );
47736
47736
 
47737
47737
  let xyz = val.mul( VAR.mul( 2.0 * Math.PI ).sqrt() ).mul( pos.mul( phase ).add( shift ).cos() ).mul( phase.pow2().negate().mul( VAR ).exp() );
47738
47738
  xyz = vec3( xyz.x.add( x ), xyz.y, xyz.z ).div( 1.0685e-7 );
@@ -47831,8 +47831,8 @@ const IBLSheenBRDF = /*@__PURE__*/ Fn( ( { normal, viewDir, roughness } ) => {
47831
47831
 
47832
47832
  const a = select(
47833
47833
  roughness.lessThan( 0.25 ),
47834
- float( - 339.2 ).mul( r2 ).add( float( 161.4 ).mul( roughness ) ).sub( 25.9 ),
47835
- float( - 8.48 ).mul( r2 ).add( float( 14.3 ).mul( roughness ) ).sub( 9.95 )
47834
+ float( -339.2 ).mul( r2 ).add( float( 161.4 ).mul( roughness ) ).sub( 25.9 ),
47835
+ float( -8.48 ).mul( r2 ).add( float( 14.3 ).mul( roughness ) ).sub( 9.95 )
47836
47836
  );
47837
47837
 
47838
47838
  const b = select(
@@ -48091,7 +48091,7 @@ class PhysicalLightingModel extends LightingModel {
48091
48091
  const dotNV = transformedNormalView.dot( positionViewDirection ).clamp(); // @ TODO: Move to core dotNV
48092
48092
 
48093
48093
  const aoNV = dotNV.add( ambientOcclusion );
48094
- const aoExp = roughness.mul( - 16.0 ).oneMinus().negate().exp2();
48094
+ const aoExp = roughness.mul( -16 ).oneMinus().negate().exp2();
48095
48095
 
48096
48096
  const aoNode = ambientOcclusion.sub( aoNV.pow( aoExp ).oneMinus() ).clamp();
48097
48097
 
@@ -48148,9 +48148,9 @@ class PhysicalLightingModel extends LightingModel {
48148
48148
  // These defines must match with PMREMGenerator
48149
48149
 
48150
48150
  const cubeUV_r0 = /*@__PURE__*/ float( 1.0 );
48151
- const cubeUV_m0 = /*@__PURE__*/ float( - 2.0 );
48151
+ const cubeUV_m0 = /*@__PURE__*/ float( -2 );
48152
48152
  const cubeUV_r1 = /*@__PURE__*/ float( 0.8 );
48153
- const cubeUV_m1 = /*@__PURE__*/ float( - 1.0 );
48153
+ const cubeUV_m1 = /*@__PURE__*/ float( -1 );
48154
48154
  const cubeUV_r4 = /*@__PURE__*/ float( 0.4 );
48155
48155
  const cubeUV_m4 = /*@__PURE__*/ float( 2.0 );
48156
48156
  const cubeUV_r5 = /*@__PURE__*/ float( 0.305 );
@@ -48168,7 +48168,7 @@ const cubeUV_minTileSize = /*@__PURE__*/ float( 16.0 );
48168
48168
  const getFace = /*@__PURE__*/ Fn( ( [ direction ] ) => {
48169
48169
 
48170
48170
  const absDirection = vec3( abs( direction ) ).toVar();
48171
- const face = float( - 1.0 ).toVar();
48171
+ const face = float( -1 ).toVar();
48172
48172
 
48173
48173
  If( absDirection.x.greaterThan( absDirection.z ), () => {
48174
48174
 
@@ -48270,7 +48270,7 @@ const roughnessToMip = /*@__PURE__*/ Fn( ( [ roughness ] ) => {
48270
48270
 
48271
48271
  } ).Else( () => {
48272
48272
 
48273
- mip.assign( float( - 2.0 ).mul( log2( mul( 1.16, roughness ) ) ) ); // 1.16 = 1.79^0.25
48273
+ mip.assign( float( -2 ).mul( log2( mul( 1.16, roughness ) ) ) ); // 1.16 = 1.79^0.25
48274
48274
 
48275
48275
  } );
48276
48276
 
@@ -48298,25 +48298,25 @@ const getDirection = /*@__PURE__*/ Fn( ( [ uv_immutable, face ] ) => {
48298
48298
  } ).ElseIf( face.equal( 1.0 ), () => {
48299
48299
 
48300
48300
  direction.assign( direction.xzy );
48301
- direction.xz.mulAssign( - 1.0 ); // ( -u, 1, -v ) pos y
48301
+ direction.xz.mulAssign( -1 ); // ( -u, 1, -v ) pos y
48302
48302
 
48303
48303
  } ).ElseIf( face.equal( 2.0 ), () => {
48304
48304
 
48305
- direction.x.mulAssign( - 1.0 ); // ( -u, v, 1 ) pos z
48305
+ direction.x.mulAssign( -1 ); // ( -u, v, 1 ) pos z
48306
48306
 
48307
48307
  } ).ElseIf( face.equal( 3.0 ), () => {
48308
48308
 
48309
48309
  direction.assign( direction.zyx );
48310
- direction.xz.mulAssign( - 1.0 ); // ( -1, v, -u ) neg x
48310
+ direction.xz.mulAssign( -1 ); // ( -1, v, -u ) neg x
48311
48311
 
48312
48312
  } ).ElseIf( face.equal( 4.0 ), () => {
48313
48313
 
48314
48314
  direction.assign( direction.xzy );
48315
- direction.xy.mulAssign( - 1.0 ); // ( -u, -1, v ) neg y
48315
+ direction.xy.mulAssign( -1 ); // ( -u, -1, v ) neg y
48316
48316
 
48317
48317
  } ).ElseIf( face.equal( 5.0 ), () => {
48318
48318
 
48319
- direction.z.mulAssign( - 1.0 ); // ( u, v, -1 ) neg zS
48319
+ direction.z.mulAssign( -1 ); // ( u, v, -1 ) neg zS
48320
48320
 
48321
48321
  } );
48322
48322
 
@@ -48419,7 +48419,7 @@ const blur = /*@__PURE__*/ Fn( ( { n, latitudinal, poleAxis, outputDirection, we
48419
48419
  } );
48420
48420
 
48421
48421
  const theta = float( dTheta.mul( float( i ) ) ).toVar();
48422
- gl_FragColor.addAssign( weights.element( i ).mul( getSample( { theta: theta.mul( - 1.0 ), axis, outputDirection, mipInt, envMap, CUBEUV_TEXEL_WIDTH, CUBEUV_TEXEL_HEIGHT, CUBEUV_MAX_MIP } ) ) );
48422
+ gl_FragColor.addAssign( weights.element( i ).mul( getSample( { theta: theta.mul( -1 ), axis, outputDirection, mipInt, envMap, CUBEUV_TEXEL_WIDTH, CUBEUV_TEXEL_HEIGHT, CUBEUV_MAX_MIP } ) ) );
48423
48423
  gl_FragColor.addAssign( weights.element( i ).mul( getSample( { theta, axis, outputDirection, mipInt, envMap, CUBEUV_TEXEL_WIDTH, CUBEUV_TEXEL_HEIGHT, CUBEUV_MAX_MIP } ) ) );
48424
48424
 
48425
48425
  } );
@@ -48448,7 +48448,7 @@ function _getPMREMFromTexture( texture ) {
48448
48448
 
48449
48449
  let cacheTexture = _cache.get( texture );
48450
48450
 
48451
- const pmremVersion = cacheTexture !== undefined ? cacheTexture.pmremVersion : - 1;
48451
+ const pmremVersion = cacheTexture !== undefined ? cacheTexture.pmremVersion : -1;
48452
48452
 
48453
48453
  if ( pmremVersion !== texture.pmremVersion ) {
48454
48454
 
@@ -48552,7 +48552,7 @@ class PMREMNode extends TempNode {
48552
48552
 
48553
48553
  let pmrem = this._pmrem;
48554
48554
 
48555
- const pmremVersion = pmrem ? pmrem.pmremVersion : - 1;
48555
+ const pmremVersion = pmrem ? pmrem.pmremVersion : -1;
48556
48556
  const texture = this._value;
48557
48557
 
48558
48558
  if ( pmremVersion !== texture.pmremVersion ) {
@@ -49626,23 +49626,23 @@ const normal = Fn( ( { texture, uv } ) => {
49626
49626
 
49627
49627
  } ).ElseIf( uv.x.greaterThan( 1 - epsilon ), () => {
49628
49628
 
49629
- ret.assign( vec3( - 1, 0, 0 ) );
49629
+ ret.assign( vec3( -1, 0, 0 ) );
49630
49630
 
49631
49631
  } ).ElseIf( uv.y.greaterThan( 1 - epsilon ), () => {
49632
49632
 
49633
- ret.assign( vec3( 0, - 1, 0 ) );
49633
+ ret.assign( vec3( 0, -1, 0 ) );
49634
49634
 
49635
49635
  } ).ElseIf( uv.z.greaterThan( 1 - epsilon ), () => {
49636
49636
 
49637
- ret.assign( vec3( 0, 0, - 1 ) );
49637
+ ret.assign( vec3( 0, 0, -1 ) );
49638
49638
 
49639
49639
  } ).Else( () => {
49640
49640
 
49641
49641
  const step = 0.01;
49642
49642
 
49643
- const x = texture.uv( uv.add( vec3( - step, 0.0, 0.0 ) ) ).r.sub( texture.uv( uv.add( vec3( step, 0.0, 0.0 ) ) ).r );
49644
- const y = texture.uv( uv.add( vec3( 0.0, - step, 0.0 ) ) ).r.sub( texture.uv( uv.add( vec3( 0.0, step, 0.0 ) ) ).r );
49645
- const z = texture.uv( uv.add( vec3( 0.0, 0.0, - step ) ) ).r.sub( texture.uv( uv.add( vec3( 0.0, 0.0, step ) ) ).r );
49643
+ const x = texture.uv( uv.add( vec3( -0.01, 0.0, 0.0 ) ) ).r.sub( texture.uv( uv.add( vec3( step, 0.0, 0.0 ) ) ).r );
49644
+ const y = texture.uv( uv.add( vec3( 0.0, -0.01, 0.0 ) ) ).r.sub( texture.uv( uv.add( vec3( 0.0, step, 0.0 ) ) ).r );
49645
+ const z = texture.uv( uv.add( vec3( 0.0, 0.0, -0.01 ) ) ).r.sub( texture.uv( uv.add( vec3( 0.0, 0.0, step ) ) ).r );
49646
49646
 
49647
49647
  ret.assign( vec3( x, y, z ) );
49648
49648
 
@@ -49731,7 +49731,7 @@ class VolumeNodeMaterial extends NodeMaterial {
49731
49731
 
49732
49732
  const hitBox = Fn( ( { orig, dir } ) => {
49733
49733
 
49734
- const box_min = vec3( - 0.5 );
49734
+ const box_min = vec3( -0.5 );
49735
49735
  const box_max = vec3( 0.5 );
49736
49736
 
49737
49737
  const inv_dir = dir.reciprocal();
@@ -52397,7 +52397,7 @@ const EXTRA_LOD_SIGMA = [ 0.125, 0.215, 0.35, 0.446, 0.526, 0.582 ];
52397
52397
  // samples and exit early, but not recompile the shader.
52398
52398
  const MAX_SAMPLES = 20;
52399
52399
 
52400
- const _flatCamera = /*@__PURE__*/ new OrthographicCamera( - 1, 1, 1, - 1, 0, 1 );
52400
+ const _flatCamera = /*@__PURE__*/ new OrthographicCamera( -1, 1, 1, -1, 0, 1 );
52401
52401
  const _cubeCamera = /*@__PURE__*/ new PerspectiveCamera( 90, 1 );
52402
52402
  const _clearColor$2 = /*@__PURE__*/ new Color();
52403
52403
  let _oldTarget = null;
@@ -52417,9 +52417,9 @@ const _axisDirections = [
52417
52417
  /*@__PURE__*/ new Vector3( INV_PHI, 0, PHI ),
52418
52418
  /*@__PURE__*/ new Vector3( 0, PHI, - INV_PHI ),
52419
52419
  /*@__PURE__*/ new Vector3( 0, PHI, INV_PHI ),
52420
- /*@__PURE__*/ new Vector3( - 1, 1, - 1 ),
52421
- /*@__PURE__*/ new Vector3( 1, 1, - 1 ),
52422
- /*@__PURE__*/ new Vector3( - 1, 1, 1 ),
52420
+ /*@__PURE__*/ new Vector3( -1, 1, -1 ),
52421
+ /*@__PURE__*/ new Vector3( 1, 1, -1 ),
52422
+ /*@__PURE__*/ new Vector3( -1, 1, 1 ),
52423
52423
  /*@__PURE__*/ new Vector3( 1, 1, 1 )
52424
52424
  ];
52425
52425
 
@@ -52684,8 +52684,8 @@ class PMREMGenerator {
52684
52684
  cubeCamera.far = far;
52685
52685
 
52686
52686
  // px, py, pz, nx, ny, nz
52687
- const upSign = [ - 1, 1, - 1, - 1, - 1, - 1 ];
52688
- const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ];
52687
+ const upSign = [ -1, 1, -1, -1, -1, -1 ];
52688
+ const forwardSign = [ 1, 1, 1, -1, -1, -1 ];
52689
52689
 
52690
52690
  const renderer = this._renderer;
52691
52691
 
@@ -53000,7 +53000,7 @@ function _createPlanes( lodMax ) {
53000
53000
  for ( let face = 0; face < cubeFaces; face ++ ) {
53001
53001
 
53002
53002
  const x = ( face % 3 ) * 2 / 3 - 1;
53003
- const y = face > 2 ? 0 : - 1;
53003
+ const y = face > 2 ? 0 : -1;
53004
53004
  const coordinates = [
53005
53005
  x, y, 0,
53006
53006
  x + 2 / 3, y, 0,
@@ -54138,7 +54138,7 @@ class NodeBuilder {
54138
54138
 
54139
54139
  removeFlowTab() {
54140
54140
 
54141
- this.tab = this.tab.slice( 0, - 1 );
54141
+ this.tab = this.tab.slice( 0, -1 );
54142
54142
 
54143
54143
  return this;
54144
54144
 
@@ -54881,7 +54881,7 @@ function getTextureIndex( textures, name ) {
54881
54881
 
54882
54882
  }
54883
54883
 
54884
- return - 1;
54884
+ return -1;
54885
54885
 
54886
54886
  }
54887
54887
 
@@ -54986,7 +54986,7 @@ class FunctionOverloadingNode extends Node {
54986
54986
  if ( candidateFnCall === null ) {
54987
54987
 
54988
54988
  let candidateFn = null;
54989
- let candidateScore = - 1;
54989
+ let candidateScore = -1;
54990
54990
 
54991
54991
  for ( const functionNode of this.functionNodes ) {
54992
54992
 
@@ -55406,7 +55406,7 @@ const _normal = new Vector3();
55406
55406
  const _reflectorWorldPosition = new Vector3();
55407
55407
  const _cameraWorldPosition = new Vector3();
55408
55408
  const _rotationMatrix = new Matrix4();
55409
- const _lookAtPosition = new Vector3( 0, 0, - 1 );
55409
+ const _lookAtPosition = new Vector3( 0, 0, -1 );
55410
55410
  const clipPlane = new Vector4();
55411
55411
 
55412
55412
  const _view = new Vector3();
@@ -55554,7 +55554,7 @@ class ReflectorNode extends TextureNode {
55554
55554
 
55555
55555
  _rotationMatrix.extractRotation( camera.matrixWorld );
55556
55556
 
55557
- _lookAtPosition.set( 0, 0, - 1 );
55557
+ _lookAtPosition.set( 0, 0, -1 );
55558
55558
  _lookAtPosition.applyMatrix4( _rotationMatrix );
55559
55559
  _lookAtPosition.add( _cameraWorldPosition );
55560
55560
 
@@ -55588,7 +55588,7 @@ class ReflectorNode extends TextureNode {
55588
55588
 
55589
55589
  _q.x = ( Math.sign( clipPlane.x ) + projectionMatrix.elements[ 8 ] ) / projectionMatrix.elements[ 0 ];
55590
55590
  _q.y = ( Math.sign( clipPlane.y ) + projectionMatrix.elements[ 9 ] ) / projectionMatrix.elements[ 5 ];
55591
- _q.z = - 1.0;
55591
+ _q.z = -1;
55592
55592
  _q.w = ( 1.0 + projectionMatrix.elements[ 10 ] ) / projectionMatrix.elements[ 14 ];
55593
55593
 
55594
55594
  // Calculate the scaled plane vector
@@ -55631,7 +55631,7 @@ const reflector = ( parameters ) => nodeObject( new ReflectorNode( parameters )
55631
55631
 
55632
55632
  // Helper for passes that need to fill the viewport with a single quad.
55633
55633
 
55634
- const _camera = /*@__PURE__*/ new OrthographicCamera( - 1, 1, 1, - 1, 0, 1 );
55634
+ const _camera = /*@__PURE__*/ new OrthographicCamera( -1, 1, 1, -1, 0, 1 );
55635
55635
 
55636
55636
  // https://github.com/mrdoob/three.js/pull/21358
55637
55637
 
@@ -55641,9 +55641,9 @@ class QuadGeometry extends BufferGeometry {
55641
55641
 
55642
55642
  super();
55643
55643
 
55644
- const uv = flipY === false ? [ 0, - 1, 0, 1, 2, 1 ] : [ 0, 2, 0, 0, 2, 0 ];
55644
+ const uv = flipY === false ? [ 0, -1, 0, 1, 2, 1 ] : [ 0, 2, 0, 0, 2, 0 ];
55645
55645
 
55646
- this.setAttribute( 'position', new Float32BufferAttribute( [ - 1, 3, 0, - 1, - 1, 0, 3, - 1, 0 ], 3 ) );
55646
+ this.setAttribute( 'position', new Float32BufferAttribute( [ -1, 3, 0, -1, -1, 0, 3, -1, 0 ], 3 ) );
55647
55647
  this.setAttribute( 'uv', new Float32BufferAttribute( uv, 2 ) );
55648
55648
 
55649
55649
  }
@@ -57120,7 +57120,7 @@ class GaussianBlurNode extends TempNode {
57120
57120
 
57121
57121
  for ( let i = 0; i < kernelRadius; i ++ ) {
57122
57122
 
57123
- coefficients.push( 0.39894 * Math.exp( - 0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
57123
+ coefficients.push( 0.39894 * Math.exp( -0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
57124
57124
 
57125
57125
  }
57126
57126
 
@@ -57291,7 +57291,7 @@ const vibrance = /*@__PURE__*/ Fn( ( [ color, adjustment = float( 1 ) ] ) => {
57291
57291
  const average = add( color.r, color.g, color.b ).div( 3.0 );
57292
57292
 
57293
57293
  const mx = color.r.max( color.g.max( color.b ) );
57294
- const amt = mx.sub( average ).mul( adjustment ).mul( - 3.0 );
57294
+ const amt = mx.sub( average ).mul( adjustment ).mul( -3 );
57295
57295
 
57296
57296
  return mix( color.rgb, mx, amt );
57297
57297
 
@@ -57494,26 +57494,26 @@ class SobelOperatorNode extends TempNode {
57494
57494
 
57495
57495
  // kernel definition (in glsl matrices are filled in column-major order)
57496
57496
 
57497
- const Gx = mat3( - 1, - 2, - 1, 0, 0, 0, 1, 2, 1 ); // x direction kernel
57498
- const Gy = mat3( - 1, 0, 1, - 2, 0, 2, - 1, 0, 1 ); // y direction kernel
57497
+ const Gx = mat3( -1, -2, -1, 0, 0, 0, 1, 2, 1 ); // x direction kernel
57498
+ const Gy = mat3( -1, 0, 1, -2, 0, 2, -1, 0, 1 ); // y direction kernel
57499
57499
 
57500
57500
  // fetch the 3x3 neighbourhood of a fragment
57501
57501
 
57502
57502
  // first column
57503
57503
 
57504
- const tx0y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( - 1, - 1 ) ) ) ).xyz );
57505
- const tx0y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( - 1, 0 ) ) ) ).xyz );
57506
- const tx0y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( - 1, 1 ) ) ) ).xyz );
57504
+ const tx0y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( -1, -1 ) ) ) ).xyz );
57505
+ const tx0y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( -1, 0 ) ) ) ).xyz );
57506
+ const tx0y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( -1, 1 ) ) ) ).xyz );
57507
57507
 
57508
57508
  // second column
57509
57509
 
57510
- const tx1y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, - 1 ) ) ) ).xyz );
57510
+ const tx1y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, -1 ) ) ) ).xyz );
57511
57511
  const tx1y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, 0 ) ) ) ).xyz );
57512
57512
  const tx1y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, 1 ) ) ) ).xyz );
57513
57513
 
57514
57514
  // third column
57515
57515
 
57516
- const tx2y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, - 1 ) ) ) ).xyz );
57516
+ const tx2y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, -1 ) ) ) ).xyz );
57517
57517
  const tx2y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, 0 ) ) ) ).xyz );
57518
57518
  const tx2y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, 1 ) ) ) ).xyz );
57519
57519
 
@@ -57623,42 +57623,42 @@ class DepthOfFieldNode extends TempNode {
57623
57623
  col = col.add( sampleTexture( uvNode.add( vec2( 0.0, 0.4 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57624
57624
  col = col.add( sampleTexture( uvNode.add( vec2( 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57625
57625
  col = col.add( sampleTexture( uvNode.add( vec2( 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57626
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57626
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57627
57627
  col = col.add( sampleTexture( uvNode.add( vec2( 0.40, 0.0 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57628
- col = col.add( sampleTexture( uvNode.add( vec2( 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57629
- col = col.add( sampleTexture( uvNode.add( vec2( 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57630
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57631
- col = col.add( sampleTexture( uvNode.add( vec2( 0.0, - 0.4 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57632
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57633
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57628
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57629
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57630
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57631
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.0, -0.4 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57632
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57633
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57634
57634
  col = col.add( sampleTexture( uvNode.add( vec2( 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57635
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57636
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57637
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57638
- col = col.add( sampleTexture( uvNode.add( vec2( 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57635
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57636
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57637
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57638
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
57639
57639
  col = col.add( sampleTexture( uvNode.add( vec2( 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57640
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57641
- col = col.add( sampleTexture( uvNode.add( vec2( 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57642
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57643
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57640
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57641
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57642
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57643
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57644
57644
  col = col.add( sampleTexture( uvNode.add( vec2( 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57645
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57646
- col = col.add( sampleTexture( uvNode.add( vec2( 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57645
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57646
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
57647
57647
  col = col.add( sampleTexture( uvNode.add( vec2( 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57648
57648
  col = col.add( sampleTexture( uvNode.add( vec2( 0.40, 0.0 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57649
- col = col.add( sampleTexture( uvNode.add( vec2( 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57650
- col = col.add( sampleTexture( uvNode.add( vec2( 0.0, - 0.4 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57651
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57652
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57653
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57649
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57650
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.0, -0.4 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57651
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57652
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57653
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57654
57654
  col = col.add( sampleTexture( uvNode.add( vec2( 0.0, 0.4 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
57655
57655
  col = col.add( sampleTexture( uvNode.add( vec2( 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57656
57656
  col = col.add( sampleTexture( uvNode.add( vec2( 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57657
- col = col.add( sampleTexture( uvNode.add( vec2( 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57658
- col = col.add( sampleTexture( uvNode.add( vec2( 0.0, - 0.4 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57659
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57660
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57661
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57657
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57658
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.0, -0.4 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57659
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57660
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57661
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57662
57662
  col = col.add( sampleTexture( uvNode.add( vec2( 0.0, 0.4 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
57663
57663
 
57664
57664
  col = col.div( 41 );
@@ -58012,7 +58012,7 @@ class GTAONode extends TempNode {
58012
58012
  const noiseTexel = sampleNoise( noiseUv );
58013
58013
  const randomVec = noiseTexel.xyz.mul( 2.0 ).sub( 1.0 );
58014
58014
  const tangent = vec3( randomVec.xy, 0.0 ).normalize();
58015
- const bitangent = vec3( tangent.y.mul( - 1.0 ), tangent.x, 0.0 );
58015
+ const bitangent = vec3( tangent.y.mul( -1 ), tangent.x, 0.0 );
58016
58016
  const kernelMatrix = mat3( tangent, bitangent, vec3( 0.0, 0.0, 1.0 ) );
58017
58017
 
58018
58018
  const DIRECTIONS = this.SAMPLES.lessThan( 30 ).select( 3, 5 );
@@ -58144,7 +58144,7 @@ function generateMagicSquare( size ) {
58144
58144
 
58145
58145
  for ( let num = 1; num <= noiseSquareSize; ) {
58146
58146
 
58147
- if ( i === - 1 && j === noiseSize ) {
58147
+ if ( i === -1 && j === noiseSize ) {
58148
58148
 
58149
58149
  j = noiseSize - 2;
58150
58150
  i = 0;
@@ -58406,7 +58406,7 @@ class FXAANode extends TempNode {
58406
58406
 
58407
58407
  setup() {
58408
58408
 
58409
- const textureNode = this.textureNode.bias( - 100 );
58409
+ const textureNode = this.textureNode.bias( -100 );
58410
58410
  const uvNode = textureNode.uvNode || uv();
58411
58411
 
58412
58412
  // FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)
@@ -58467,10 +58467,10 @@ class FXAANode extends TempNode {
58467
58467
  const FxaaPixelShader = Fn( ( [ uv, fxaaQualityRcpFrame, fxaaQualityEdgeThreshold, fxaaQualityinvEdgeThreshold ] ) => {
58468
58468
 
58469
58469
  const rgbaM = FxaaTexTop( uv ).toVar();
58470
- const rgbaS = FxaaTexOff( uv, vec2( 0.0, - 1.0 ), fxaaQualityRcpFrame.xy ).toVar();
58470
+ const rgbaS = FxaaTexOff( uv, vec2( 0.0, -1 ), fxaaQualityRcpFrame.xy ).toVar();
58471
58471
  const rgbaE = FxaaTexOff( uv, vec2( 1.0, 0.0 ), fxaaQualityRcpFrame.xy ).toVar();
58472
58472
  const rgbaN = FxaaTexOff( uv, vec2( 0.0, 1.0 ), fxaaQualityRcpFrame.xy ).toVar();
58473
- const rgbaW = FxaaTexOff( uv, vec2( - 1.0, 0.0 ), fxaaQualityRcpFrame.xy ).toVar();
58473
+ const rgbaW = FxaaTexOff( uv, vec2( -1, 0.0 ), fxaaQualityRcpFrame.xy ).toVar();
58474
58474
  // . S .
58475
58475
  // W M E
58476
58476
  // . N .
@@ -58503,8 +58503,8 @@ class FXAANode extends TempNode {
58503
58503
 
58504
58504
  // locate the edge
58505
58505
 
58506
- const x = contrastE.greaterThan( contrastW ).select( 1, - 1 ).toVar();
58507
- const y = contrastS.greaterThan( contrastN ).select( 1, - 1 ).toVar();
58506
+ const x = contrastE.greaterThan( contrastW ).select( 1, -1 ).toVar();
58507
+ const y = contrastS.greaterThan( contrastN ).select( 1, -1 ).toVar();
58508
58508
 
58509
58509
  const dirToEdge = vec2( x, y ).toVar();
58510
58510
  // . 2 . . 1 .
@@ -58962,7 +58962,7 @@ class BloomNode extends TempNode {
58962
58962
 
58963
58963
  for ( let i = 0; i < kernelRadius; i ++ ) {
58964
58964
 
58965
- coefficients.push( 0.39894 * Math.exp( - 0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
58965
+ coefficients.push( 0.39894 * Math.exp( -0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
58966
58966
 
58967
58967
  }
58968
58968
 
@@ -59148,9 +59148,9 @@ class PixelationNode extends TempNode {
59148
59148
 
59149
59149
  const diff = property( 'float', 'diff' );
59150
59150
  diff.addAssign( clamp( sampleDepth( 1, 0 ).sub( depth ) ) );
59151
- diff.addAssign( clamp( sampleDepth( - 1, 0 ).sub( depth ) ) );
59151
+ diff.addAssign( clamp( sampleDepth( -1, 0 ).sub( depth ) ) );
59152
59152
  diff.addAssign( clamp( sampleDepth( 0, 1 ).sub( depth ) ) );
59153
- diff.addAssign( clamp( sampleDepth( 0, - 1 ).sub( depth ) ) );
59153
+ diff.addAssign( clamp( sampleDepth( 0, -1 ).sub( depth ) ) );
59154
59154
 
59155
59155
  return floor( smoothstep( 0.01, 0.02, diff ).mul( 2 ) ).div( 2 );
59156
59156
 
@@ -59165,7 +59165,7 @@ class PixelationNode extends TempNode {
59165
59165
 
59166
59166
  const normalEdgeBias = vec3( 1, 1, 1 ); // This should probably be a parameter.
59167
59167
  const normalDiff = dot( normal.sub( neighborNormal ), normalEdgeBias );
59168
- const normalIndicator = clamp( smoothstep( - 0.01, 0.01, normalDiff ), 0.0, 1.0 );
59168
+ const normalIndicator = clamp( smoothstep( -0.01, 0.01, normalDiff ), 0.0, 1.0 );
59169
59169
 
59170
59170
  // Only the shallower pixel should detect the normal edge.
59171
59171
 
@@ -59179,9 +59179,9 @@ class PixelationNode extends TempNode {
59179
59179
 
59180
59180
  const indicator = property( 'float', 'indicator' );
59181
59181
 
59182
- indicator.addAssign( neighborNormalEdgeIndicator( 0, - 1, depth, normal ) );
59182
+ indicator.addAssign( neighborNormalEdgeIndicator( 0, -1, depth, normal ) );
59183
59183
  indicator.addAssign( neighborNormalEdgeIndicator( 0, 1, depth, normal ) );
59184
- indicator.addAssign( neighborNormalEdgeIndicator( - 1, 0, depth, normal ) );
59184
+ indicator.addAssign( neighborNormalEdgeIndicator( -1, 0, depth, normal ) );
59185
59185
  indicator.addAssign( neighborNormalEdgeIndicator( 1, 0, depth, normal ) );
59186
59186
 
59187
59187
  return step( 0.1, indicator );
@@ -59401,7 +59401,7 @@ class SSAAPassNode extends PassNode {
59401
59401
  // The following equation varies the sampleWeight per sample so that it is uniformly distributed
59402
59402
  // across a range of values whose rounding errors cancel each other out.
59403
59403
 
59404
- const uniformCenteredDistribution = ( - 0.5 + ( i + 0.5 ) / jitterOffsets.length );
59404
+ const uniformCenteredDistribution = ( -0.5 + ( i + 0.5 ) / jitterOffsets.length );
59405
59405
  this.sampleWeight.value += roundingRange * uniformCenteredDistribution;
59406
59406
 
59407
59407
  }
@@ -59530,28 +59530,28 @@ const _JitterVectors = [
59530
59530
  [ 0, 0 ]
59531
59531
  ],
59532
59532
  [
59533
- [ 4, 4 ], [ - 4, - 4 ]
59533
+ [ 4, 4 ], [ -4, -4 ]
59534
59534
  ],
59535
59535
  [
59536
- [ - 2, - 6 ], [ 6, - 2 ], [ - 6, 2 ], [ 2, 6 ]
59536
+ [ -2, -6 ], [ 6, -2 ], [ -6, 2 ], [ 2, 6 ]
59537
59537
  ],
59538
59538
  [
59539
- [ 1, - 3 ], [ - 1, 3 ], [ 5, 1 ], [ - 3, - 5 ],
59540
- [ - 5, 5 ], [ - 7, - 1 ], [ 3, 7 ], [ 7, - 7 ]
59539
+ [ 1, -3 ], [ -1, 3 ], [ 5, 1 ], [ -3, -5 ],
59540
+ [ -5, 5 ], [ -7, -1 ], [ 3, 7 ], [ 7, -7 ]
59541
59541
  ],
59542
59542
  [
59543
- [ 1, 1 ], [ - 1, - 3 ], [ - 3, 2 ], [ 4, - 1 ],
59544
- [ - 5, - 2 ], [ 2, 5 ], [ 5, 3 ], [ 3, - 5 ],
59545
- [ - 2, 6 ], [ 0, - 7 ], [ - 4, - 6 ], [ - 6, 4 ],
59546
- [ - 8, 0 ], [ 7, - 4 ], [ 6, 7 ], [ - 7, - 8 ]
59543
+ [ 1, 1 ], [ -1, -3 ], [ -3, 2 ], [ 4, -1 ],
59544
+ [ -5, -2 ], [ 2, 5 ], [ 5, 3 ], [ 3, -5 ],
59545
+ [ -2, 6 ], [ 0, -7 ], [ -4, -6 ], [ -6, 4 ],
59546
+ [ -8, 0 ], [ 7, -4 ], [ 6, 7 ], [ -7, -8 ]
59547
59547
  ],
59548
59548
  [
59549
- [ - 4, - 7 ], [ - 7, - 5 ], [ - 3, - 5 ], [ - 5, - 4 ],
59550
- [ - 1, - 4 ], [ - 2, - 2 ], [ - 6, - 1 ], [ - 4, 0 ],
59551
- [ - 7, 1 ], [ - 1, 2 ], [ - 6, 3 ], [ - 3, 3 ],
59552
- [ - 7, 6 ], [ - 3, 6 ], [ - 5, 7 ], [ - 1, 7 ],
59553
- [ 5, - 7 ], [ 1, - 6 ], [ 6, - 5 ], [ 4, - 4 ],
59554
- [ 2, - 3 ], [ 7, - 2 ], [ 1, - 1 ], [ 4, - 1 ],
59549
+ [ -4, -7 ], [ -7, -5 ], [ -3, -5 ], [ -5, -4 ],
59550
+ [ -1, -4 ], [ -2, -2 ], [ -6, -1 ], [ -4, 0 ],
59551
+ [ -7, 1 ], [ -1, 2 ], [ -6, 3 ], [ -3, 3 ],
59552
+ [ -7, 6 ], [ -3, 6 ], [ -5, 7 ], [ -1, 7 ],
59553
+ [ 5, -7 ], [ 1, -6 ], [ 6, -5 ], [ 4, -4 ],
59554
+ [ 2, -3 ], [ 7, -2 ], [ 1, -1 ], [ 4, -1 ],
59555
59555
  [ 2, 1 ], [ 6, 2 ], [ 0, 4 ], [ 4, 4 ],
59556
59556
  [ 2, 5 ], [ 7, 5 ], [ 5, 6 ], [ 3, 7 ]
59557
59557
  ]
@@ -59753,15 +59753,15 @@ class AnaglyphPassNode extends StereoCompositePassNode {
59753
59753
  // Dubois matrices from https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.7.6968&rep=rep1&type=pdf#page=4
59754
59754
 
59755
59755
  this._colorMatrixLeft = uniform( new Matrix3().fromArray( [
59756
- 0.456100, - 0.0400822, - 0.0152161,
59757
- 0.500484, - 0.0378246, - 0.0205971,
59758
- 0.176381, - 0.0157589, - 0.00546856
59756
+ 0.456100, -0.0400822, -0.0152161,
59757
+ 0.500484, -0.0378246, -0.0205971,
59758
+ 0.176381, -0.0157589, -546856e-8
59759
59759
  ] ) );
59760
59760
 
59761
59761
  this._colorMatrixRight = uniform( new Matrix3().fromArray( [
59762
- - 0.0434706, 0.378476, - 0.0721527,
59763
- - 0.0879388, 0.73364, - 0.112961,
59764
- - 0.00155529, - 0.0184503, 1.2264
59762
+ -0.0434706, 0.378476, -0.0721527,
59763
+ -0.0879388, 0.73364, -0.112961,
59764
+ -155529e-8, -0.0184503, 1.2264
59765
59765
  ] ) );
59766
59766
 
59767
59767
  }
@@ -60953,7 +60953,7 @@ const VSMPassVertical = Fn( ( { samples, radius, size, shadowPass } ) => {
60953
60953
  const squaredMean = float( 0 ).toVar();
60954
60954
 
60955
60955
  const uvStride = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( 2 ).div( samples.sub( 1 ) ) );
60956
- const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( - 1 ) );
60956
+ const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( -1 ) );
60957
60957
 
60958
60958
  Loop( { start: int( 0 ), end: int( samples ), type: 'int', condition: '<' }, ( { i } ) => {
60959
60959
 
@@ -60979,7 +60979,7 @@ const VSMPassHorizontal = Fn( ( { samples, radius, size, shadowPass } ) => {
60979
60979
  const squaredMean = float( 0 ).toVar();
60980
60980
 
60981
60981
  const uvStride = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( 2 ).div( samples.sub( 1 ) ) );
60982
- const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( - 1 ) );
60982
+ const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( -1 ) );
60983
60983
 
60984
60984
  Loop( { start: int( 0 ), end: int( samples ), type: 'int', condition: '<' }, ( { i } ) => {
60985
60985
 
@@ -61882,9 +61882,9 @@ const acesFilmicToneMapping = /*@__PURE__*/ Fn( ( [ color, exposure ] ) => {
61882
61882
 
61883
61883
  // ODT_SAT => XYZ => D60_2_D65 => sRGB
61884
61884
  const ACESOutputMat = mat3(
61885
- 1.60475, - 0.53108, - 0.07367,
61886
- - 0.10208, 1.10813, - 0.00605,
61887
- - 0.00327, - 0.07276, 1.07602
61885
+ 1.60475, -0.53108, -0.07367,
61886
+ -0.10208, 1.10813, -605e-5,
61887
+ -327e-5, -0.07276, 1.07602
61888
61888
  );
61889
61889
 
61890
61890
  color = color.mul( exposure ).div( 0.6 );
@@ -61908,7 +61908,7 @@ const acesFilmicToneMapping = /*@__PURE__*/ Fn( ( [ color, exposure ] ) => {
61908
61908
  ]
61909
61909
  } );
61910
61910
 
61911
- const LINEAR_REC2020_TO_LINEAR_SRGB = /*@__PURE__*/ mat3( vec3( 1.6605, - 0.1246, - 0.0182 ), vec3( - 0.5876, 1.1329, - 0.1006 ), vec3( - 0.0728, - 0.0083, 1.1187 ) );
61911
+ const LINEAR_REC2020_TO_LINEAR_SRGB = /*@__PURE__*/ mat3( vec3( 1.6605, -0.1246, -0.0182 ), vec3( -0.5876, 1.1329, -0.1006 ), vec3( -0.0728, -83e-4, 1.1187 ) );
61912
61912
  const LINEAR_SRGB_TO_LINEAR_REC2020 = /*@__PURE__*/ mat3( vec3( 0.6274, 0.0691, 0.0164 ), vec3( 0.3293, 0.9195, 0.0880 ), vec3( 0.0433, 0.0113, 0.8956 ) );
61913
61913
 
61914
61914
  const agxDefaultContrastApprox = /*@__PURE__*/ Fn( ( [ x_immutable ] ) => {
@@ -61925,8 +61925,8 @@ const agxToneMapping = /*@__PURE__*/ Fn( ( [ color, exposure ] ) => {
61925
61925
 
61926
61926
  const colortone = vec3( color ).toVar();
61927
61927
  const AgXInsetMatrix = mat3( vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) );
61928
- const AgXOutsetMatrix = mat3( vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) );
61929
- const AgxMinEv = float( - 12.47393 );
61928
+ const AgXOutsetMatrix = mat3( vec3( 1.1271005818144368, -0.1413297634984383, -0.14132976349843826 ), vec3( -0.11060664309660323, 1.157823702216272, -0.11060664309660294 ), vec3( -0.016493938717834573, -0.016493938717834257, 1.2519364065950405 ) );
61929
+ const AgxMinEv = float( -12.47393 );
61930
61930
  const AgxMaxEv = float( 4.026069 );
61931
61931
  colortone.mulAssign( exposure );
61932
61932
  colortone.assign( LINEAR_SRGB_TO_LINEAR_REC2020.mul( colortone ) );
@@ -63351,9 +63351,9 @@ const mx_worley_noise_float_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immuta
63351
63351
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
63352
63352
  const sqdist = float( 1e6 ).toVar();
63353
63353
 
63354
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63354
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63355
63355
 
63356
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63356
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63357
63357
 
63358
63358
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
63359
63359
  sqdist.assign( min$1( sqdist, dist ) );
@@ -63389,9 +63389,9 @@ const mx_worley_noise_vec2_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
63389
63389
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
63390
63390
  const sqdist = vec2( 1e6, 1e6 ).toVar();
63391
63391
 
63392
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63392
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63393
63393
 
63394
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63394
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63395
63395
 
63396
63396
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
63397
63397
 
@@ -63437,9 +63437,9 @@ const mx_worley_noise_vec3_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
63437
63437
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
63438
63438
  const sqdist = vec3( 1e6, 1e6, 1e6 ).toVar();
63439
63439
 
63440
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63440
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63441
63441
 
63442
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63442
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63443
63443
 
63444
63444
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
63445
63445
 
@@ -63491,11 +63491,11 @@ const mx_worley_noise_float_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immuta
63491
63491
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
63492
63492
  const sqdist = float( 1e6 ).toVar();
63493
63493
 
63494
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63494
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63495
63495
 
63496
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63496
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63497
63497
 
63498
- Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
63498
+ Loop( { start: -1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
63499
63499
 
63500
63500
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
63501
63501
  sqdist.assign( min$1( sqdist, dist ) );
@@ -63535,11 +63535,11 @@ const mx_worley_noise_vec2_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
63535
63535
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
63536
63536
  const sqdist = vec2( 1e6, 1e6 ).toVar();
63537
63537
 
63538
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63538
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63539
63539
 
63540
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63540
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63541
63541
 
63542
- Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
63542
+ Loop( { start: -1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
63543
63543
 
63544
63544
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
63545
63545
 
@@ -63589,11 +63589,11 @@ const mx_worley_noise_vec3_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
63589
63589
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
63590
63590
  const sqdist = vec3( 1e6, 1e6, 1e6 ).toVar();
63591
63591
 
63592
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63592
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
63593
63593
 
63594
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63594
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
63595
63595
 
63596
- Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
63596
+ Loop( { start: -1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
63597
63597
 
63598
63598
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
63599
63599
 
@@ -64312,7 +64312,7 @@ const parse$1 = ( source ) => {
64312
64312
 
64313
64313
  const pragmaMainIndex = source.indexOf( pragmaMain );
64314
64314
 
64315
- const mainCode = pragmaMainIndex !== - 1 ? source.slice( pragmaMainIndex + pragmaMain.length ) : source;
64315
+ const mainCode = pragmaMainIndex !== -1 ? source.slice( pragmaMainIndex + pragmaMain.length ) : source;
64316
64316
 
64317
64317
  const declaration = mainCode.match( declarationRegexp$1 );
64318
64318
 
@@ -64381,7 +64381,7 @@ const parse$1 = ( source ) => {
64381
64381
 
64382
64382
  const precision = declaration[ 1 ] !== undefined ? declaration[ 1 ] : '';
64383
64383
 
64384
- const headerCode = pragmaMainIndex !== - 1 ? source.slice( 0, pragmaMainIndex ) : '';
64384
+ const headerCode = pragmaMainIndex !== -1 ? source.slice( 0, pragmaMainIndex ) : '';
64385
64385
 
64386
64386
  return {
64387
64387
  type,
@@ -67805,7 +67805,7 @@ class UniformsGroup extends UniformBuffer {
67805
67805
 
67806
67806
  const index = this.uniforms.indexOf( uniform );
67807
67807
 
67808
- if ( index !== - 1 ) {
67808
+ if ( index !== -1 ) {
67809
67809
 
67810
67810
  this.uniforms.splice( index, 1 );
67811
67811