@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
 
@@ -1607,7 +1607,7 @@ function toNormalizedProjectionMatrix( projectionMatrix ) {
1607
1607
  function toReversedProjectionMatrix( projectionMatrix ) {
1608
1608
 
1609
1609
  const m = projectionMatrix.elements;
1610
- const isPerspectiveMatrix = m[ 11 ] === - 1;
1610
+ const isPerspectiveMatrix = m[ 11 ] === -1;
1611
1611
 
1612
1612
  // Reverse [0, 1] projection matrix
1613
1613
  if ( isPerspectiveMatrix ) {
@@ -1643,9 +1643,9 @@ const LINEAR_SRGB_TO_LINEAR_DISPLAY_P3 = /*@__PURE__*/ new Matrix3().set(
1643
1643
  );
1644
1644
 
1645
1645
  const LINEAR_DISPLAY_P3_TO_LINEAR_SRGB = /*@__PURE__*/ new Matrix3().set(
1646
- 1.2249401, - 0.2249404, 0.0,
1647
- - 0.0420569, 1.0420571, 0.0,
1648
- - 0.0196376, - 0.0786361, 1.0982735
1646
+ 1.2249401, -0.2249404, 0.0,
1647
+ -0.0420569, 1.0420571, 0.0,
1648
+ -0.0196376, -0.0786361, 1.0982735
1649
1649
  );
1650
1650
 
1651
1651
  /**
@@ -3300,7 +3300,7 @@ class Quaternion {
3300
3300
 
3301
3301
  let s = 1 - t;
3302
3302
  const cos = x0 * x1 + y0 * y1 + z0 * z1 + w0 * w1,
3303
- dir = ( cos >= 0 ? 1 : - 1 ),
3303
+ dir = ( cos >= 0 ? 1 : -1 ),
3304
3304
  sqrSin = 1 - cos * cos;
3305
3305
 
3306
3306
  // Skip the Slerp for tiny steps to avoid numeric problems:
@@ -3643,7 +3643,7 @@ class Quaternion {
3643
3643
 
3644
3644
  angleTo( q ) {
3645
3645
 
3646
- return 2 * Math.acos( Math.abs( clamp$1( this.dot( q ), - 1, 1 ) ) );
3646
+ return 2 * Math.acos( Math.abs( clamp$1( this.dot( q ), -1, 1 ) ) );
3647
3647
 
3648
3648
  }
3649
3649
 
@@ -3677,9 +3677,9 @@ class Quaternion {
3677
3677
 
3678
3678
  conjugate() {
3679
3679
 
3680
- this._x *= - 1;
3681
- this._y *= - 1;
3682
- this._z *= - 1;
3680
+ this._x *= -1;
3681
+ this._y *= -1;
3682
+ this._z *= -1;
3683
3683
 
3684
3684
  this._onChangeCallback();
3685
3685
 
@@ -4461,7 +4461,7 @@ class Vector3 {
4461
4461
 
4462
4462
  // clamp, to handle numerical problems
4463
4463
 
4464
- return Math.acos( clamp$1( theta, - 1, 1 ) );
4464
+ return Math.acos( clamp$1( theta, -1, 1 ) );
4465
4465
 
4466
4466
  }
4467
4467
 
@@ -5189,7 +5189,7 @@ const _v2$3 = /*@__PURE__*/ new Vector3();
5189
5189
 
5190
5190
  class Sphere {
5191
5191
 
5192
- constructor( center = new Vector3(), radius = - 1 ) {
5192
+ constructor( center = new Vector3(), radius = -1 ) {
5193
5193
 
5194
5194
  this.isSphere = true;
5195
5195
 
@@ -5253,7 +5253,7 @@ class Sphere {
5253
5253
  makeEmpty() {
5254
5254
 
5255
5255
  this.center.set( 0, 0, 0 );
5256
- this.radius = - 1;
5256
+ this.radius = -1;
5257
5257
 
5258
5258
  return this;
5259
5259
 
@@ -5435,7 +5435,7 @@ const _normal$2 = /*@__PURE__*/ new Vector3();
5435
5435
 
5436
5436
  class Ray {
5437
5437
 
5438
- constructor( origin = new Vector3(), direction = new Vector3( 0, 0, - 1 ) ) {
5438
+ constructor( origin = new Vector3(), direction = new Vector3( 0, 0, -1 ) ) {
5439
5439
 
5440
5440
  this.origin = origin;
5441
5441
  this.direction = direction;
@@ -5841,7 +5841,7 @@ class Ray {
5841
5841
 
5842
5842
  } else if ( DdN < 0 ) {
5843
5843
 
5844
- sign = - 1;
5844
+ sign = -1;
5845
5845
  DdN = - DdN;
5846
5846
 
5847
5847
  } else {
@@ -6701,7 +6701,7 @@ class Matrix4 {
6701
6701
  if ( coordinateSystem === WebGLCoordinateSystem ) {
6702
6702
 
6703
6703
  c = - ( far + near ) / ( far - near );
6704
- d = ( - 2 * far * near ) / ( far - near );
6704
+ d = ( -2 * far * near ) / ( far - near );
6705
6705
 
6706
6706
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
6707
6707
 
@@ -6717,7 +6717,7 @@ class Matrix4 {
6717
6717
  te[ 0 ] = x; te[ 4 ] = 0; te[ 8 ] = a; te[ 12 ] = 0;
6718
6718
  te[ 1 ] = 0; te[ 5 ] = y; te[ 9 ] = b; te[ 13 ] = 0;
6719
6719
  te[ 2 ] = 0; te[ 6 ] = 0; te[ 10 ] = c; te[ 14 ] = d;
6720
- te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = - 1; te[ 15 ] = 0;
6720
+ te[ 3 ] = 0; te[ 7 ] = 0; te[ 11 ] = -1; te[ 15 ] = 0;
6721
6721
 
6722
6722
  return this;
6723
6723
 
@@ -6738,12 +6738,12 @@ class Matrix4 {
6738
6738
  if ( coordinateSystem === WebGLCoordinateSystem ) {
6739
6739
 
6740
6740
  z = ( far + near ) * p;
6741
- zInv = - 2 * p;
6741
+ zInv = -2 * p;
6742
6742
 
6743
6743
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
6744
6744
 
6745
6745
  z = near * p;
6746
- zInv = - 1 * p;
6746
+ zInv = -1 * p;
6747
6747
 
6748
6748
  } else {
6749
6749
 
@@ -6938,7 +6938,7 @@ class Euler {
6938
6938
 
6939
6939
  case 'XYZ':
6940
6940
 
6941
- this._y = Math.asin( clamp$1( m13, - 1, 1 ) );
6941
+ this._y = Math.asin( clamp$1( m13, -1, 1 ) );
6942
6942
 
6943
6943
  if ( Math.abs( m13 ) < 0.9999999 ) {
6944
6944
 
@@ -6956,7 +6956,7 @@ class Euler {
6956
6956
 
6957
6957
  case 'YXZ':
6958
6958
 
6959
- this._x = Math.asin( - clamp$1( m23, - 1, 1 ) );
6959
+ this._x = Math.asin( - clamp$1( m23, -1, 1 ) );
6960
6960
 
6961
6961
  if ( Math.abs( m23 ) < 0.9999999 ) {
6962
6962
 
@@ -6974,7 +6974,7 @@ class Euler {
6974
6974
 
6975
6975
  case 'ZXY':
6976
6976
 
6977
- this._x = Math.asin( clamp$1( m32, - 1, 1 ) );
6977
+ this._x = Math.asin( clamp$1( m32, -1, 1 ) );
6978
6978
 
6979
6979
  if ( Math.abs( m32 ) < 0.9999999 ) {
6980
6980
 
@@ -6992,7 +6992,7 @@ class Euler {
6992
6992
 
6993
6993
  case 'ZYX':
6994
6994
 
6995
- this._y = Math.asin( - clamp$1( m31, - 1, 1 ) );
6995
+ this._y = Math.asin( - clamp$1( m31, -1, 1 ) );
6996
6996
 
6997
6997
  if ( Math.abs( m31 ) < 0.9999999 ) {
6998
6998
 
@@ -7010,7 +7010,7 @@ class Euler {
7010
7010
 
7011
7011
  case 'YZX':
7012
7012
 
7013
- this._z = Math.asin( clamp$1( m21, - 1, 1 ) );
7013
+ this._z = Math.asin( clamp$1( m21, -1, 1 ) );
7014
7014
 
7015
7015
  if ( Math.abs( m21 ) < 0.9999999 ) {
7016
7016
 
@@ -7028,7 +7028,7 @@ class Euler {
7028
7028
 
7029
7029
  case 'XZY':
7030
7030
 
7031
- this._z = Math.asin( - clamp$1( m12, - 1, 1 ) );
7031
+ this._z = Math.asin( - clamp$1( m12, -1, 1 ) );
7032
7032
 
7033
7033
  if ( Math.abs( m12 ) < 0.9999999 ) {
7034
7034
 
@@ -7555,7 +7555,7 @@ class Object3D extends EventDispatcher {
7555
7555
 
7556
7556
  const index = this.children.indexOf( object );
7557
7557
 
7558
- if ( index !== - 1 ) {
7558
+ if ( index !== -1 ) {
7559
7559
 
7560
7560
  object.parent = null;
7561
7561
  this.children.splice( index, 1 );
@@ -8896,7 +8896,7 @@ class Color {
8896
8896
 
8897
8897
  getHexString( colorSpace = SRGBColorSpace ) {
8898
8898
 
8899
- return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( - 6 );
8899
+ return ( '000000' + this.getHex( colorSpace ).toString( 16 ) ).slice( -6 );
8900
8900
 
8901
8901
  }
8902
8902
 
@@ -9776,7 +9776,7 @@ function _generateTables() {
9776
9776
 
9777
9777
  // very small number (0, -0)
9778
9778
 
9779
- if ( e < - 27 ) {
9779
+ if ( e < -27 ) {
9780
9780
 
9781
9781
  baseTable[ i ] = 0x0000;
9782
9782
  baseTable[ i | 0x100 ] = 0x8000;
@@ -9785,7 +9785,7 @@ function _generateTables() {
9785
9785
 
9786
9786
  // small number (denorm)
9787
9787
 
9788
- } else if ( e < - 14 ) {
9788
+ } else if ( e < -14 ) {
9789
9789
 
9790
9790
  baseTable[ i ] = 0x0400 >> ( - e - 14 );
9791
9791
  baseTable[ i | 0x100 ] = ( 0x0400 >> ( - e - 14 ) ) | 0x8000;
@@ -9842,7 +9842,7 @@ function _generateTables() {
9842
9842
 
9843
9843
  }
9844
9844
 
9845
- m &= ~ 0x00800000; // clear leading 1 bit
9845
+ m &= -8388609; // clear leading 1 bit
9846
9846
  e += 0x38800000; // adjust bias
9847
9847
 
9848
9848
  mantissaTable[ i ] = m | e;
@@ -9900,7 +9900,7 @@ function toHalfFloat( val ) {
9900
9900
 
9901
9901
  if ( Math.abs( val ) > 65504 ) console.warn( 'THREE.DataUtils.toHalfFloat(): Value out of range.' );
9902
9902
 
9903
- val = clamp$1( val, - 65504, 65504 );
9903
+ val = clamp$1( val, -65504, 65504 );
9904
9904
 
9905
9905
  _tables.floatView[ 0 ] = val;
9906
9906
  const f = _tables.uint32View[ 0 ];
@@ -11127,7 +11127,7 @@ class BufferGeometry extends EventDispatcher {
11127
11127
 
11128
11128
  tmp2.crossVectors( n2, t );
11129
11129
  const test = tmp2.dot( tan2[ v ] );
11130
- const w = ( test < 0.0 ) ? - 1.0 : 1.0;
11130
+ const w = ( test < 0.0 ) ? -1 : 1.0;
11131
11131
 
11132
11132
  tangentAttribute.setXYZW( v, tmp.x, tmp.y, tmp.z, w );
11133
11133
 
@@ -11969,7 +11969,7 @@ function checkGeometryIntersection( object, material, raycaster, ray, uv, uv1, n
11969
11969
 
11970
11970
  if ( intersection.normal.dot( ray.direction ) > 0 ) {
11971
11971
 
11972
- intersection.normal.multiplyScalar( - 1 );
11972
+ intersection.normal.multiplyScalar( -1 );
11973
11973
 
11974
11974
  }
11975
11975
 
@@ -12033,12 +12033,12 @@ class BoxGeometry extends BufferGeometry {
12033
12033
 
12034
12034
  // build each side of the box geometry
12035
12035
 
12036
- buildPlane( 'z', 'y', 'x', - 1, - 1, depth, height, width, depthSegments, heightSegments, 0 ); // px
12037
- buildPlane( 'z', 'y', 'x', 1, - 1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
12036
+ buildPlane( 'z', 'y', 'x', -1, -1, depth, height, width, depthSegments, heightSegments, 0 ); // px
12037
+ buildPlane( 'z', 'y', 'x', 1, -1, depth, height, - width, depthSegments, heightSegments, 1 ); // nx
12038
12038
  buildPlane( 'x', 'z', 'y', 1, 1, width, depth, height, widthSegments, depthSegments, 2 ); // py
12039
- buildPlane( 'x', 'z', 'y', 1, - 1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
12040
- buildPlane( 'x', 'y', 'z', 1, - 1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
12041
- buildPlane( 'x', 'y', 'z', - 1, - 1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
12039
+ buildPlane( 'x', 'z', 'y', 1, -1, width, depth, - height, widthSegments, depthSegments, 3 ); // ny
12040
+ buildPlane( 'x', 'y', 'z', 1, -1, width, height, depth, widthSegments, heightSegments, 4 ); // pz
12041
+ buildPlane( 'x', 'y', 'z', -1, -1, width, height, - depth, widthSegments, heightSegments, 5 ); // nz
12042
12042
 
12043
12043
  // build geometry
12044
12044
 
@@ -12088,7 +12088,7 @@ class BoxGeometry extends BufferGeometry {
12088
12088
 
12089
12089
  vector[ u ] = 0;
12090
12090
  vector[ v ] = 0;
12091
- vector[ w ] = depth > 0 ? 1 : - 1;
12091
+ vector[ w ] = depth > 0 ? 1 : -1;
12092
12092
 
12093
12093
  // now apply vector to normal buffer
12094
12094
 
@@ -12634,7 +12634,7 @@ class PerspectiveCamera extends Camera {
12634
12634
  */
12635
12635
  getViewBounds( distance, minTarget, maxTarget ) {
12636
12636
 
12637
- _v3$1.set( - 1, - 1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
12637
+ _v3$1.set( -1, -1, 0.5 ).applyMatrix4( this.projectionMatrixInverse );
12638
12638
 
12639
12639
  minTarget.set( _v3$1.x, _v3$1.y ).multiplyScalar( - distance / _v3$1.z );
12640
12640
 
@@ -12739,7 +12739,7 @@ class PerspectiveCamera extends Camera {
12739
12739
  let top = near * Math.tan( DEG2RAD * 0.5 * this.fov ) / this.zoom;
12740
12740
  let height = 2 * top;
12741
12741
  let width = this.aspect * height;
12742
- let left = - 0.5 * width;
12742
+ let left = -0.5 * width;
12743
12743
  const view = this.view;
12744
12744
 
12745
12745
  if ( this.view !== null && this.view.enabled ) {
@@ -12787,7 +12787,7 @@ class PerspectiveCamera extends Camera {
12787
12787
 
12788
12788
  }
12789
12789
 
12790
- const fov = - 90; // negative fov is not an error
12790
+ const fov = -90; // negative fov is not an error
12791
12791
  const aspect = 1;
12792
12792
 
12793
12793
  class CubeCamera extends Object3D {
@@ -12844,39 +12844,39 @@ class CubeCamera extends Object3D {
12844
12844
  cameraPX.lookAt( 1, 0, 0 );
12845
12845
 
12846
12846
  cameraNX.up.set( 0, 1, 0 );
12847
- cameraNX.lookAt( - 1, 0, 0 );
12847
+ cameraNX.lookAt( -1, 0, 0 );
12848
12848
 
12849
- cameraPY.up.set( 0, 0, - 1 );
12849
+ cameraPY.up.set( 0, 0, -1 );
12850
12850
  cameraPY.lookAt( 0, 1, 0 );
12851
12851
 
12852
12852
  cameraNY.up.set( 0, 0, 1 );
12853
- cameraNY.lookAt( 0, - 1, 0 );
12853
+ cameraNY.lookAt( 0, -1, 0 );
12854
12854
 
12855
12855
  cameraPZ.up.set( 0, 1, 0 );
12856
12856
  cameraPZ.lookAt( 0, 0, 1 );
12857
12857
 
12858
12858
  cameraNZ.up.set( 0, 1, 0 );
12859
- cameraNZ.lookAt( 0, 0, - 1 );
12859
+ cameraNZ.lookAt( 0, 0, -1 );
12860
12860
 
12861
12861
  } else if ( coordinateSystem === WebGPUCoordinateSystem ) {
12862
12862
 
12863
- cameraPX.up.set( 0, - 1, 0 );
12864
- cameraPX.lookAt( - 1, 0, 0 );
12863
+ cameraPX.up.set( 0, -1, 0 );
12864
+ cameraPX.lookAt( -1, 0, 0 );
12865
12865
 
12866
- cameraNX.up.set( 0, - 1, 0 );
12866
+ cameraNX.up.set( 0, -1, 0 );
12867
12867
  cameraNX.lookAt( 1, 0, 0 );
12868
12868
 
12869
12869
  cameraPY.up.set( 0, 0, 1 );
12870
12870
  cameraPY.lookAt( 0, 1, 0 );
12871
12871
 
12872
- cameraNY.up.set( 0, 0, - 1 );
12873
- cameraNY.lookAt( 0, - 1, 0 );
12872
+ cameraNY.up.set( 0, 0, -1 );
12873
+ cameraNY.lookAt( 0, -1, 0 );
12874
12874
 
12875
- cameraPZ.up.set( 0, - 1, 0 );
12875
+ cameraPZ.up.set( 0, -1, 0 );
12876
12876
  cameraPZ.lookAt( 0, 0, 1 );
12877
12877
 
12878
- cameraNZ.up.set( 0, - 1, 0 );
12879
- cameraNZ.lookAt( 0, 0, - 1 );
12878
+ cameraNZ.up.set( 0, -1, 0 );
12879
+ cameraNZ.lookAt( 0, 0, -1 );
12880
12880
 
12881
12881
  } else {
12882
12882
 
@@ -13199,7 +13199,7 @@ class Plane {
13199
13199
 
13200
13200
  negate() {
13201
13201
 
13202
- this.constant *= - 1;
13202
+ this.constant *= -1;
13203
13203
  this.normal.negate();
13204
13204
 
13205
13205
  return this;
@@ -14336,7 +14336,7 @@ const UniformsLib = {
14336
14336
 
14337
14337
  envMap: { value: null },
14338
14338
  envMapRotation: { value: /*@__PURE__*/ new Matrix3() },
14339
- flipEnvMap: { value: - 1 },
14339
+ flipEnvMap: { value: -1 },
14340
14340
  reflectivity: { value: 1.0 }, // basic, lambert, phong
14341
14341
  ior: { value: 1.5 }, // physical
14342
14342
  refractionRatio: { value: 0.98 }, // basic, lambert, phong
@@ -14757,7 +14757,7 @@ const ShaderLib = {
14757
14757
 
14758
14758
  uniforms: {
14759
14759
  envMap: { value: null },
14760
- flipEnvMap: { value: - 1 },
14760
+ flipEnvMap: { value: -1 },
14761
14761
  backgroundBlurriness: { value: 0 },
14762
14762
  backgroundIntensity: { value: 1 },
14763
14763
  backgroundRotation: { value: /*@__PURE__*/ new Matrix3() }
@@ -14772,7 +14772,7 @@ const ShaderLib = {
14772
14772
 
14773
14773
  uniforms: {
14774
14774
  tCube: { value: null },
14775
- tFlip: { value: - 1 },
14775
+ tFlip: { value: -1 },
14776
14776
  opacity: { value: 1.0 }
14777
14777
  },
14778
14778
 
@@ -15006,18 +15006,18 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
15006
15006
  _e1$1.copy( scene.backgroundRotation );
15007
15007
 
15008
15008
  // accommodate left-handed frame
15009
- _e1$1.x *= - 1; _e1$1.y *= - 1; _e1$1.z *= - 1;
15009
+ _e1$1.x *= -1; _e1$1.y *= -1; _e1$1.z *= -1;
15010
15010
 
15011
15011
  if ( background.isCubeTexture && background.isRenderTargetTexture === false ) {
15012
15012
 
15013
15013
  // environment maps which are not cube render targets or PMREMs follow a different convention
15014
- _e1$1.y *= - 1;
15015
- _e1$1.z *= - 1;
15014
+ _e1$1.y *= -1;
15015
+ _e1$1.z *= -1;
15016
15016
 
15017
15017
  }
15018
15018
 
15019
15019
  boxMesh.material.uniforms.envMap.value = background;
15020
- boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? - 1 : 1;
15020
+ boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? -1 : 1;
15021
15021
  boxMesh.material.uniforms.backgroundBlurriness.value = scene.backgroundBlurriness;
15022
15022
  boxMesh.material.uniforms.backgroundIntensity.value = scene.backgroundIntensity;
15023
15023
  boxMesh.material.uniforms.backgroundRotation.value.setFromMatrix4( _m1$1.makeRotationFromEuler( _e1$1 ) );
@@ -16239,7 +16239,7 @@ function WebGLCubeMaps( renderer ) {
16239
16239
 
16240
16240
  class OrthographicCamera extends Camera {
16241
16241
 
16242
- constructor( left = - 1, right = 1, top = 1, bottom = - 1, near = 0.1, far = 2000 ) {
16242
+ constructor( left = -1, right = 1, top = 1, bottom = -1, near = 0.1, far = 2000 ) {
16243
16243
 
16244
16244
  super();
16245
16245
 
@@ -16402,9 +16402,9 @@ const _axisDirections$1 = [
16402
16402
  /*@__PURE__*/ new Vector3( INV_PHI$1, 0, PHI$1 ),
16403
16403
  /*@__PURE__*/ new Vector3( 0, PHI$1, - INV_PHI$1 ),
16404
16404
  /*@__PURE__*/ new Vector3( 0, PHI$1, INV_PHI$1 ),
16405
- /*@__PURE__*/ new Vector3( - 1, 1, - 1 ),
16406
- /*@__PURE__*/ new Vector3( 1, 1, - 1 ),
16407
- /*@__PURE__*/ new Vector3( - 1, 1, 1 ),
16405
+ /*@__PURE__*/ new Vector3( -1, 1, -1 ),
16406
+ /*@__PURE__*/ new Vector3( 1, 1, -1 ),
16407
+ /*@__PURE__*/ new Vector3( -1, 1, 1 ),
16408
16408
  /*@__PURE__*/ new Vector3( 1, 1, 1 ) ];
16409
16409
 
16410
16410
  /**
@@ -16662,8 +16662,8 @@ let PMREMGenerator$1 = class PMREMGenerator {
16662
16662
  const fov = 90;
16663
16663
  const aspect = 1;
16664
16664
  const cubeCamera = new PerspectiveCamera( fov, aspect, near, far );
16665
- const upSign = [ 1, - 1, 1, 1, 1, 1 ];
16666
- const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ];
16665
+ const upSign = [ 1, -1, 1, 1, 1, 1 ];
16666
+ const forwardSign = [ 1, 1, 1, -1, -1, -1 ];
16667
16667
  const renderer = this._renderer;
16668
16668
 
16669
16669
  const originalAutoClear = renderer.autoClear;
@@ -16762,7 +16762,7 @@ let PMREMGenerator$1 = class PMREMGenerator {
16762
16762
 
16763
16763
  }
16764
16764
 
16765
- this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? - 1 : 1;
16765
+ this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? -1 : 1;
16766
16766
 
16767
16767
  } else {
16768
16768
 
@@ -16975,7 +16975,7 @@ function _createPlanes$1( lodMax ) {
16975
16975
  for ( let face = 0; face < cubeFaces; face ++ ) {
16976
16976
 
16977
16977
  const x = ( face % 3 ) * 2 / 3 - 1;
16978
- const y = face > 2 ? 0 : - 1;
16978
+ const y = face > 2 ? 0 : -1;
16979
16979
  const coordinates = [
16980
16980
  x, y, 0,
16981
16981
  x + 2 / 3, y, 0,
@@ -17174,7 +17174,7 @@ function _getCubemapMaterial$1() {
17174
17174
 
17175
17175
  uniforms: {
17176
17176
  'envMap': { value: null },
17177
- 'flipEnvMap': { value: - 1 }
17177
+ 'flipEnvMap': { value: -1 }
17178
17178
  },
17179
17179
 
17180
17180
  vertexShader: _getCommonVertexShader(),
@@ -21632,18 +21632,18 @@ function WebGLLights( extensions ) {
21632
21632
  version: 0,
21633
21633
 
21634
21634
  hash: {
21635
- directionalLength: - 1,
21636
- pointLength: - 1,
21637
- spotLength: - 1,
21638
- rectAreaLength: - 1,
21639
- hemiLength: - 1,
21640
-
21641
- numDirectionalShadows: - 1,
21642
- numPointShadows: - 1,
21643
- numSpotShadows: - 1,
21644
- numSpotMaps: - 1,
21645
-
21646
- numLightProbes: - 1
21635
+ directionalLength: -1,
21636
+ pointLength: -1,
21637
+ spotLength: -1,
21638
+ rectAreaLength: -1,
21639
+ hemiLength: -1,
21640
+
21641
+ numDirectionalShadows: -1,
21642
+ numPointShadows: -1,
21643
+ numSpotShadows: -1,
21644
+ numSpotMaps: -1,
21645
+
21646
+ numLightProbes: -1
21647
21647
  },
21648
21648
 
21649
21649
  ambient: [ 0, 0, 0 ],
@@ -22274,7 +22274,7 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
22274
22274
  fullScreenTri.setAttribute(
22275
22275
  'position',
22276
22276
  new BufferAttribute(
22277
- new Float32Array( [ - 1, - 1, 0.5, 3, - 1, 0.5, - 1, 3, 0.5 ] ),
22277
+ new Float32Array( [ -1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5 ] ),
22278
22278
  3
22279
22279
  )
22280
22280
  );
@@ -22707,7 +22707,7 @@ function WebGLState( gl ) {
22707
22707
  locked = false;
22708
22708
 
22709
22709
  currentColorMask = null;
22710
- currentColorClear.set( - 1, 0, 0, 0 ); // set to invalid state
22710
+ currentColorClear.set( -1, 0, 0, 0 ); // set to invalid state
22711
22711
 
22712
22712
  }
22713
22713
 
@@ -23003,12 +23003,12 @@ function WebGLState( gl ) {
23003
23003
  let version = 0;
23004
23004
  const glVersion = gl.getParameter( gl.VERSION );
23005
23005
 
23006
- if ( glVersion.indexOf( 'WebGL' ) !== - 1 ) {
23006
+ if ( glVersion.indexOf( 'WebGL' ) !== -1 ) {
23007
23007
 
23008
23008
  version = parseFloat( /^WebGL (\d)/.exec( glVersion )[ 1 ] );
23009
23009
  lineWidthAvailable = ( version >= 1.0 );
23010
23010
 
23011
- } else if ( glVersion.indexOf( 'OpenGL ES' ) !== - 1 ) {
23011
+ } else if ( glVersion.indexOf( 'OpenGL ES' ) !== -1 ) {
23012
23012
 
23013
23013
  version = parseFloat( /^OpenGL ES (\d)/.exec( glVersion )[ 1 ] );
23014
23014
  lineWidthAvailable = ( version >= 2.0 );
@@ -27094,7 +27094,7 @@ class WebXRManager extends EventDispatcher {
27094
27094
 
27095
27095
  const controllerIndex = controllerInputSources.indexOf( event.inputSource );
27096
27096
 
27097
- if ( controllerIndex === - 1 ) {
27097
+ if ( controllerIndex === -1 ) {
27098
27098
 
27099
27099
  return;
27100
27100
 
@@ -27248,7 +27248,11 @@ class WebXRManager extends EventDispatcher {
27248
27248
  currentPixelRatio = renderer.getPixelRatio();
27249
27249
  renderer.getSize( currentSize );
27250
27250
 
27251
- if ( session.renderState.layers === undefined ) {
27251
+ // Check that the browser implements the necessary APIs to use an
27252
+ // XRProjectionLayer rather than an XRWebGLLayer
27253
+ const useLayers = typeof XRWebGLBinding !== 'undefined' && 'createProjectionLayer' in XRWebGLBinding.prototype;
27254
+
27255
+ if ( ! useLayers ) {
27252
27256
 
27253
27257
  const layerInit = {
27254
27258
  antialias: attributes.antialias,
@@ -27380,7 +27384,7 @@ class WebXRManager extends EventDispatcher {
27380
27384
 
27381
27385
  let controllerIndex = controllerInputSources.indexOf( inputSource );
27382
27386
 
27383
- if ( controllerIndex === - 1 ) {
27387
+ if ( controllerIndex === -1 ) {
27384
27388
 
27385
27389
  // Assign input source a controller that currently has no input source
27386
27390
 
@@ -27404,7 +27408,7 @@ class WebXRManager extends EventDispatcher {
27404
27408
 
27405
27409
  // If all controllers do currently receive input we ignore new ones
27406
27410
 
27407
- if ( controllerIndex === - 1 ) break;
27411
+ if ( controllerIndex === -1 ) break;
27408
27412
 
27409
27413
  }
27410
27414
 
@@ -27467,7 +27471,7 @@ class WebXRManager extends EventDispatcher {
27467
27471
  camera.matrixWorldInverse.copy( camera.matrixWorld ).invert();
27468
27472
 
27469
27473
  // Check if the projection uses an infinite far plane.
27470
- if ( projL[ 10 ] === - 1.0 ) {
27474
+ if ( projL[ 10 ] === -1 ) {
27471
27475
 
27472
27476
  // Use the projection matrix from the left eye.
27473
27477
  // The camera offset is sufficient to include the view volumes
@@ -27965,7 +27969,7 @@ function WebGLMaterials( renderer, properties ) {
27965
27969
 
27966
27970
  if ( material.side === BackSide ) {
27967
27971
 
27968
- uniforms.bumpScale.value *= - 1;
27972
+ uniforms.bumpScale.value *= -1;
27969
27973
 
27970
27974
  }
27971
27975
 
@@ -28032,19 +28036,19 @@ function WebGLMaterials( renderer, properties ) {
28032
28036
  _e1.copy( envMapRotation );
28033
28037
 
28034
28038
  // accommodate left-handed frame
28035
- _e1.x *= - 1; _e1.y *= - 1; _e1.z *= - 1;
28039
+ _e1.x *= -1; _e1.y *= -1; _e1.z *= -1;
28036
28040
 
28037
28041
  if ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) {
28038
28042
 
28039
28043
  // environment maps which are not cube render targets or PMREMs follow a different convention
28040
- _e1.y *= - 1;
28041
- _e1.z *= - 1;
28044
+ _e1.y *= -1;
28045
+ _e1.z *= -1;
28042
28046
 
28043
28047
  }
28044
28048
 
28045
28049
  uniforms.envMapRotation.value.setFromMatrix4( _m1.makeRotationFromEuler( _e1 ) );
28046
28050
 
28047
- uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
28051
+ uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
28048
28052
 
28049
28053
  uniforms.reflectivity.value = material.reflectivity;
28050
28054
  uniforms.ior.value = material.ior;
@@ -28467,7 +28471,7 @@ function WebGLUniformsGroups( gl, info, capabilities, state ) {
28467
28471
 
28468
28472
  for ( let i = 0; i < maxBindingPoints; i ++ ) {
28469
28473
 
28470
- if ( allocatedBindingPoints.indexOf( i ) === - 1 ) {
28474
+ if ( allocatedBindingPoints.indexOf( i ) === -1 ) {
28471
28475
 
28472
28476
  allocatedBindingPoints.push( i );
28473
28477
  return i;
@@ -28888,7 +28892,7 @@ class WebGLRenderer {
28888
28892
  let _currentActiveCubeFace = 0;
28889
28893
  let _currentActiveMipmapLevel = 0;
28890
28894
  let _currentRenderTarget = null;
28891
- let _currentMaterialId = - 1;
28895
+ let _currentMaterialId = -1;
28892
28896
 
28893
28897
  let _currentCamera = null;
28894
28898
 
@@ -30012,7 +30016,7 @@ class WebGLRenderer {
30012
30016
  // _gl.finish();
30013
30017
 
30014
30018
  bindingStates.resetDefaultState();
30015
- _currentMaterialId = - 1;
30019
+ _currentMaterialId = -1;
30016
30020
  _currentCamera = null;
30017
30021
 
30018
30022
  renderStateStack.pop();
@@ -30828,7 +30832,7 @@ class WebGLRenderer {
30828
30832
 
30829
30833
  m_uniforms.envMap.value = envMap;
30830
30834
 
30831
- m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
30835
+ m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
30832
30836
 
30833
30837
  }
30834
30838
 
@@ -31121,7 +31125,7 @@ class WebGLRenderer {
31121
31125
 
31122
31126
  }
31123
31127
 
31124
- _currentMaterialId = - 1; // reset current material to ensure correct uniform bindings
31128
+ _currentMaterialId = -1; // reset current material to ensure correct uniform bindings
31125
31129
 
31126
31130
  };
31127
31131
 
@@ -32308,10 +32312,10 @@ class Sprite extends Object3D {
32308
32312
  _geometry$1 = new BufferGeometry();
32309
32313
 
32310
32314
  const float32Array = new Float32Array( [
32311
- - 0.5, - 0.5, 0, 0, 0,
32312
- 0.5, - 0.5, 0, 1, 0,
32315
+ -0.5, -0.5, 0, 0, 0,
32316
+ 0.5, -0.5, 0, 1, 0,
32313
32317
  0.5, 0.5, 0, 1, 1,
32314
- - 0.5, 0.5, 0, 0, 1
32318
+ -0.5, 0.5, 0, 0, 1
32315
32319
  ] );
32316
32320
 
32317
32321
  const interleavedBuffer = new InterleavedBuffer( float32Array, 5 );
@@ -32362,8 +32366,8 @@ class Sprite extends Object3D {
32362
32366
 
32363
32367
  const center = this.center;
32364
32368
 
32365
- transformVertex( _vA.set( - 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32366
- transformVertex( _vB.set( 0.5, - 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32369
+ transformVertex( _vA.set( -0.5, -0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32370
+ transformVertex( _vB.set( 0.5, -0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32367
32371
  transformVertex( _vC.set( 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32368
32372
 
32369
32373
  _uvA.set( 0, 0 );
@@ -32376,7 +32380,7 @@ class Sprite extends Object3D {
32376
32380
  if ( intersect === null ) {
32377
32381
 
32378
32382
  // check second triangle
32379
- transformVertex( _vB.set( - 0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32383
+ transformVertex( _vB.set( -0.5, 0.5, 0 ), _mvPosition, center, _worldScale, sin, cos );
32380
32384
  _uvB.set( 0, 1 );
32381
32385
 
32382
32386
  intersect = raycaster.ray.intersectTriangle( _vA, _vC, _vB, false, _intersectPoint );
@@ -33555,10 +33559,10 @@ class MultiDrawRenderList {
33555
33559
 
33556
33560
  pool.push( {
33557
33561
 
33558
- start: - 1,
33559
- count: - 1,
33560
- z: - 1,
33561
- index: - 1,
33562
+ start: -1,
33563
+ count: -1,
33564
+ z: -1,
33565
+ index: -1,
33562
33566
 
33563
33567
  } );
33564
33568
 
@@ -33907,7 +33911,7 @@ class BatchedMesh extends Mesh {
33907
33911
 
33908
33912
  }
33909
33913
 
33910
- addGeometry( geometry, vertexCount = - 1, indexCount = - 1 ) {
33914
+ addGeometry( geometry, vertexCount = -1, indexCount = -1 ) {
33911
33915
 
33912
33916
  this._initializeGeometry( geometry );
33913
33917
 
@@ -33922,10 +33926,10 @@ class BatchedMesh extends Mesh {
33922
33926
 
33923
33927
  // get the necessary range fo the geometry
33924
33928
  const reservedRange = {
33925
- vertexStart: - 1,
33926
- vertexCount: - 1,
33927
- indexStart: - 1,
33928
- indexCount: - 1,
33929
+ vertexStart: -1,
33930
+ vertexCount: -1,
33931
+ indexStart: -1,
33932
+ indexCount: -1,
33929
33933
  };
33930
33934
 
33931
33935
  let lastRange = null;
@@ -33938,7 +33942,7 @@ class BatchedMesh extends Mesh {
33938
33942
 
33939
33943
  }
33940
33944
 
33941
- if ( vertexCount === - 1 ) {
33945
+ if ( vertexCount === -1 ) {
33942
33946
 
33943
33947
  reservedRange.vertexCount = geometry.getAttribute( 'position' ).count;
33944
33948
 
@@ -33962,7 +33966,7 @@ class BatchedMesh extends Mesh {
33962
33966
  const hasIndex = index !== null;
33963
33967
  if ( hasIndex ) {
33964
33968
 
33965
- if ( indexCount === - 1 ) {
33969
+ if ( indexCount === -1 ) {
33966
33970
 
33967
33971
  reservedRange.indexCount = index.count;
33968
33972
 
@@ -33985,7 +33989,7 @@ class BatchedMesh extends Mesh {
33985
33989
  }
33986
33990
 
33987
33991
  if (
33988
- reservedRange.indexStart !== - 1 &&
33992
+ reservedRange.indexStart !== -1 &&
33989
33993
  reservedRange.indexStart + reservedRange.indexCount > this._maxIndexCount ||
33990
33994
  reservedRange.vertexStart + reservedRange.vertexCount > this._maxVertexCount
33991
33995
  ) {
@@ -34002,7 +34006,7 @@ class BatchedMesh extends Mesh {
34002
34006
  reservedRanges.push( reservedRange );
34003
34007
  drawRanges.push( {
34004
34008
  start: hasIndex ? reservedRange.indexStart : reservedRange.vertexStart,
34005
- count: - 1
34009
+ count: -1
34006
34010
  } );
34007
34011
  bounds.push( {
34008
34012
  boxInitialized: false,
@@ -34386,7 +34390,7 @@ class BatchedMesh extends Mesh {
34386
34390
  const drawInfo = this._drawInfo;
34387
34391
  if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {
34388
34392
 
34389
- return - 1;
34393
+ return -1;
34390
34394
 
34391
34395
  }
34392
34396
 
@@ -34582,7 +34586,7 @@ class BatchedMesh extends Mesh {
34582
34586
  // get the camera position in the local frame
34583
34587
  _invMatrixWorld.copy( this.matrixWorld ).invert();
34584
34588
  _vector$5.setFromMatrixPosition( camera.matrixWorld ).applyMatrix4( _invMatrixWorld );
34585
- _forward.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld ).transformDirection( _invMatrixWorld );
34589
+ _forward.set( 0, 0, -1 ).transformDirection( camera.matrixWorld ).transformDirection( _invMatrixWorld );
34586
34590
 
34587
34591
  for ( let i = 0, l = drawInfo.length; i < l; i ++ ) {
34588
34592
 
@@ -35717,7 +35721,7 @@ class Curve {
35717
35721
 
35718
35722
  vec.normalize();
35719
35723
 
35720
- const theta = Math.acos( clamp$1( tangents[ i - 1 ].dot( tangents[ i ] ), - 1, 1 ) ); // clamp for floating pt errors
35724
+ const theta = Math.acos( clamp$1( tangents[ i - 1 ].dot( tangents[ i ] ), -1, 1 ) ); // clamp for floating pt errors
35721
35725
 
35722
35726
  normals[ i ].applyMatrix4( mat.makeRotationAxis( vec, theta ) );
35723
35727
 
@@ -35731,7 +35735,7 @@ class Curve {
35731
35735
 
35732
35736
  if ( closed === true ) {
35733
35737
 
35734
- let theta = Math.acos( clamp$1( normals[ 0 ].dot( normals[ segments ] ), - 1, 1 ) );
35738
+ let theta = Math.acos( clamp$1( normals[ 0 ].dot( normals[ segments ] ), -1, 1 ) );
35735
35739
  theta /= segments;
35736
35740
 
35737
35741
  if ( tangents[ 0 ].dot( vec.crossVectors( normals[ 0 ], normals[ segments ] ) ) > 0 ) {
@@ -36001,7 +36005,7 @@ function CubicPoly() {
36001
36005
 
36002
36006
  c0 = x0;
36003
36007
  c1 = t0;
36004
- c2 = - 3 * x0 + 3 * x1 - 2 * t0 - t1;
36008
+ c2 = -3 * x0 + 3 * x1 - 2 * t0 - t1;
36005
36009
  c3 = 2 * x0 - 2 * x1 + t0 + t1;
36006
36010
 
36007
36011
  }
@@ -36227,7 +36231,7 @@ function CatmullRom( t, p0, p1, p2, p3 ) {
36227
36231
  const v1 = ( p3 - p1 ) * 0.5;
36228
36232
  const t2 = t * t;
36229
36233
  const t3 = t * t2;
36230
- return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( - 3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1;
36234
+ return ( 2 * p1 - 2 * p2 + v0 + v1 ) * t3 + ( -3 * p1 + 3 * p2 - 2 * v0 - v1 ) * t2 + v0 * t + p1;
36231
36235
 
36232
36236
  }
36233
36237
 
@@ -37300,7 +37304,7 @@ class Path extends CurvePath {
37300
37304
 
37301
37305
  class LatheGeometry extends BufferGeometry {
37302
37306
 
37303
- 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 ) {
37307
+ 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 ) {
37304
37308
 
37305
37309
  super();
37306
37310
 
@@ -37771,7 +37775,7 @@ class CylinderGeometry extends BufferGeometry {
37771
37775
  let groupCount = 0;
37772
37776
 
37773
37777
  const radius = ( top === true ) ? radiusTop : radiusBottom;
37774
- const sign = ( top === true ) ? 1 : - 1;
37778
+ const sign = ( top === true ) ? 1 : -1;
37775
37779
 
37776
37780
  // first we generate the center vertex data of the cap.
37777
37781
  // because the geometry needs one set of uvs per face,
@@ -38239,10 +38243,10 @@ class DodecahedronGeometry extends PolyhedronGeometry {
38239
38243
  const vertices = [
38240
38244
 
38241
38245
  // (±1, ±1, ±1)
38242
- - 1, - 1, - 1, - 1, - 1, 1,
38243
- - 1, 1, - 1, - 1, 1, 1,
38244
- 1, - 1, - 1, 1, - 1, 1,
38245
- 1, 1, - 1, 1, 1, 1,
38246
+ -1, -1, -1, -1, -1, 1,
38247
+ -1, 1, -1, -1, 1, 1,
38248
+ 1, -1, -1, 1, -1, 1,
38249
+ 1, 1, -1, 1, 1, 1,
38246
38250
 
38247
38251
  // (0, ±1/φ, ±φ)
38248
38252
  0, - r, - t, 0, - r, t,
@@ -39175,7 +39179,7 @@ function onSegment( p, q, r ) {
39175
39179
 
39176
39180
  function sign$1( num ) {
39177
39181
 
39178
- return num > 0 ? 1 : num < 0 ? - 1 : 0;
39182
+ return num > 0 ? 1 : num < 0 ? -1 : 0;
39179
39183
 
39180
39184
  }
39181
39185
 
@@ -39435,7 +39439,7 @@ function addContour( vertices, contour ) {
39435
39439
 
39436
39440
  class ExtrudeGeometry extends BufferGeometry {
39437
39441
 
39438
- 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 = {} ) {
39442
+ 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 = {} ) {
39439
39443
 
39440
39444
  super();
39441
39445
 
@@ -40222,9 +40226,9 @@ class IcosahedronGeometry extends PolyhedronGeometry {
40222
40226
  const t = ( 1 + Math.sqrt( 5 ) ) / 2;
40223
40227
 
40224
40228
  const vertices = [
40225
- - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t, 0,
40226
- 0, - 1, t, 0, 1, t, 0, - 1, - t, 0, 1, - t,
40227
- t, 0, - 1, t, 0, 1, - t, 0, - 1, - t, 0, 1
40229
+ -1, t, 0, 1, t, 0, -1, - t, 0, 1, - t, 0,
40230
+ 0, -1, t, 0, 1, t, 0, -1, - t, 0, 1, - t,
40231
+ t, 0, -1, t, 0, 1, - t, 0, -1, - t, 0, 1
40228
40232
  ];
40229
40233
 
40230
40234
  const indices = [
@@ -40258,8 +40262,8 @@ class OctahedronGeometry extends PolyhedronGeometry {
40258
40262
  constructor( radius = 1, detail = 0 ) {
40259
40263
 
40260
40264
  const vertices = [
40261
- 1, 0, 0, - 1, 0, 0, 0, 1, 0,
40262
- 0, - 1, 0, 0, 0, 1, 0, 0, - 1
40265
+ 1, 0, 0, -1, 0, 0, 0, 1, 0,
40266
+ 0, -1, 0, 0, 0, 1, 0, 0, -1
40263
40267
  ];
40264
40268
 
40265
40269
  const indices = [
@@ -40410,7 +40414,7 @@ class RingGeometry extends BufferGeometry {
40410
40414
 
40411
40415
  class ShapeGeometry extends BufferGeometry {
40412
40416
 
40413
- constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( - 0.5, - 0.5 ), new Vector2( 0.5, - 0.5 ) ] ), curveSegments = 12 ) {
40417
+ constructor( shapes = new Shape( [ new Vector2( 0, 0.5 ), new Vector2( -0.5, -0.5 ), new Vector2( 0.5, -0.5 ) ] ), curveSegments = 12 ) {
40414
40418
 
40415
40419
  super();
40416
40420
 
@@ -40650,7 +40654,7 @@ class SphereGeometry extends BufferGeometry {
40650
40654
 
40651
40655
  } else if ( iy === heightSegments && thetaEnd === Math.PI ) {
40652
40656
 
40653
- uOffset = - 0.5 / widthSegments;
40657
+ uOffset = -0.5 / widthSegments;
40654
40658
 
40655
40659
  }
40656
40660
 
@@ -40733,7 +40737,7 @@ class TetrahedronGeometry extends PolyhedronGeometry {
40733
40737
  constructor( radius = 1, detail = 0 ) {
40734
40738
 
40735
40739
  const vertices = [
40736
- 1, 1, 1, - 1, - 1, 1, - 1, 1, - 1, 1, - 1, - 1
40740
+ 1, 1, 1, -1, -1, 1, -1, 1, -1, 1, -1, -1
40737
40741
  ];
40738
40742
 
40739
40743
  const indices = [
@@ -41038,7 +41042,7 @@ class TorusKnotGeometry extends BufferGeometry {
41038
41042
 
41039
41043
  class TubeGeometry extends BufferGeometry {
41040
41044
 
41041
- 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 ) {
41045
+ 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 ) {
41042
41046
 
41043
41047
  super();
41044
41048
 
@@ -42489,7 +42493,7 @@ function subclip( sourceClip, name, startFrame, endFrame, fps = 30 ) {
42489
42493
 
42490
42494
  for ( let i = 0; i < clip.tracks.length; ++ i ) {
42491
42495
 
42492
- clip.tracks[ i ].shift( - 1 * minStartTime );
42496
+ clip.tracks[ i ].shift( -1 * minStartTime );
42493
42497
 
42494
42498
  }
42495
42499
 
@@ -42886,10 +42890,10 @@ class CubicInterpolant extends Interpolant {
42886
42890
 
42887
42891
  super( parameterPositions, sampleValues, sampleSize, resultBuffer );
42888
42892
 
42889
- this._weightPrev = - 0;
42890
- this._offsetPrev = - 0;
42891
- this._weightNext = - 0;
42892
- this._offsetNext = - 0;
42893
+ this._weightPrev = -0;
42894
+ this._offsetPrev = -0;
42895
+ this._weightNext = -0;
42896
+ this._offsetNext = -0;
42893
42897
 
42894
42898
  this.DefaultSettings_ = {
42895
42899
 
@@ -42996,8 +43000,8 @@ class CubicInterpolant extends Interpolant {
42996
43000
  // evaluate polynomials
42997
43001
 
42998
43002
  const sP = - wP * ppp + 2 * wP * pp - wP * p;
42999
- const s0 = ( 1 + wP ) * ppp + ( - 1.5 - 2 * wP ) * pp + ( - 0.5 + wP ) * p + 1;
43000
- const s1 = ( - 1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p;
43003
+ const s0 = ( 1 + wP ) * ppp + ( -1.5 - 2 * wP ) * pp + ( -0.5 + wP ) * p + 1;
43004
+ const s1 = ( -1 - wN ) * ppp + ( 1.5 + wN ) * pp + 0.5 * p;
43001
43005
  const sN = wN * ppp - wN * pp;
43002
43006
 
43003
43007
  // combine data linearly
@@ -43286,7 +43290,7 @@ class KeyframeTrack {
43286
43290
 
43287
43291
  }
43288
43292
 
43289
- while ( to !== - 1 && times[ to ] > endTime ) {
43293
+ while ( to !== -1 && times[ to ] > endTime ) {
43290
43294
 
43291
43295
  -- to;
43292
43296
 
@@ -43640,7 +43644,7 @@ VectorKeyframeTrack.prototype.ValueTypeName = 'vector';
43640
43644
 
43641
43645
  class AnimationClip {
43642
43646
 
43643
- constructor( name = '', duration = - 1, tracks = [], blendMode = NormalAnimationBlendMode ) {
43647
+ constructor( name = '', duration = -1, tracks = [], blendMode = NormalAnimationBlendMode ) {
43644
43648
 
43645
43649
  this.name = name;
43646
43650
  this.tracks = tracks;
@@ -43741,7 +43745,7 @@ class AnimationClip {
43741
43745
 
43742
43746
  }
43743
43747
 
43744
- return new this( name, - 1, tracks );
43748
+ return new this( name, -1, tracks );
43745
43749
 
43746
43750
  }
43747
43751
 
@@ -43853,7 +43857,7 @@ class AnimationClip {
43853
43857
  const blendMode = animation.blendMode;
43854
43858
 
43855
43859
  // automatic length determination in AnimationClip.
43856
- let duration = animation.length || - 1;
43860
+ let duration = animation.length || -1;
43857
43861
 
43858
43862
  const hierarchyTracks = animation.hierarchy || [];
43859
43863
 
@@ -43878,7 +43882,7 @@ class AnimationClip {
43878
43882
 
43879
43883
  for ( let m = 0; m < animationKeys[ k ].morphTargets.length; m ++ ) {
43880
43884
 
43881
- morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = - 1;
43885
+ morphTargetNames[ animationKeys[ k ].morphTargets[ m ] ] = -1;
43882
43886
 
43883
43887
  }
43884
43888
 
@@ -44243,7 +44247,7 @@ class LoadingManager {
44243
44247
 
44244
44248
  const index = handlers.indexOf( regex );
44245
44249
 
44246
- if ( index !== - 1 ) {
44250
+ if ( index !== -1 ) {
44247
44251
 
44248
44252
  handlers.splice( index, 2 );
44249
44253
 
@@ -45499,13 +45503,13 @@ class PointLightShadow extends LightShadow {
45499
45503
  ];
45500
45504
 
45501
45505
  this._cubeDirections = [
45502
- new Vector3( 1, 0, 0 ), new Vector3( - 1, 0, 0 ), new Vector3( 0, 0, 1 ),
45503
- new Vector3( 0, 0, - 1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, - 1, 0 )
45506
+ new Vector3( 1, 0, 0 ), new Vector3( -1, 0, 0 ), new Vector3( 0, 0, 1 ),
45507
+ new Vector3( 0, 0, -1 ), new Vector3( 0, 1, 0 ), new Vector3( 0, -1, 0 )
45504
45508
  ];
45505
45509
 
45506
45510
  this._cubeUps = [
45507
45511
  new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ), new Vector3( 0, 1, 0 ),
45508
- new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, - 1 )
45512
+ new Vector3( 0, 1, 0 ), new Vector3( 0, 0, 1 ), new Vector3( 0, 0, -1 )
45509
45513
  ];
45510
45514
 
45511
45515
  }
@@ -45599,7 +45603,7 @@ class DirectionalLightShadow extends LightShadow {
45599
45603
 
45600
45604
  constructor() {
45601
45605
 
45602
- super( new OrthographicCamera( - 5, 5, 5, - 5, 0.5, 500 ) );
45606
+ super( new OrthographicCamera( -5, 5, 5, -5, 0.5, 500 ) );
45603
45607
 
45604
45608
  this.isDirectionalLightShadow = true;
45605
45609
 
@@ -46387,7 +46391,7 @@ class LoaderUtils {
46387
46391
 
46388
46392
  const index = url.lastIndexOf( '/' );
46389
46393
 
46390
- if ( index === - 1 ) return './';
46394
+ if ( index === -1 ) return './';
46391
46395
 
46392
46396
  return url.slice( 0, index + 1 );
46393
46397
 
@@ -48254,7 +48258,7 @@ class AudioListener extends Object3D {
48254
48258
  if ( ! Number.isFinite( _position$1.x ) || ! Number.isFinite( _position$1.y ) || ! Number.isFinite( _position$1.z ) )
48255
48259
  return;
48256
48260
 
48257
- _orientation$1.set( 0, 0, - 1 ).applyQuaternion( _quaternion$1 );
48261
+ _orientation$1.set( 0, 0, -1 ).applyQuaternion( _quaternion$1 );
48258
48262
 
48259
48263
  if ( listener.positionX ) {
48260
48264
 
@@ -49342,7 +49346,7 @@ class PropertyBinding {
49342
49346
 
49343
49347
  const lastDot = results.nodeName && results.nodeName.lastIndexOf( '.' );
49344
49348
 
49345
- if ( lastDot !== undefined && lastDot !== - 1 ) {
49349
+ if ( lastDot !== undefined && lastDot !== -1 ) {
49346
49350
 
49347
49351
  const objectName = results.nodeName.substring( lastDot + 1 );
49348
49352
 
@@ -49350,7 +49354,7 @@ class PropertyBinding {
49350
49354
  // is no way to parse 'foo.bar.baz': 'baz' must be a property, but
49351
49355
  // 'bar' could be the objectName, or part of a nodeName (which can
49352
49356
  // include '.' characters).
49353
- if ( _supportedObjectNames.indexOf( objectName ) !== - 1 ) {
49357
+ if ( _supportedObjectNames.indexOf( objectName ) !== -1 ) {
49354
49358
 
49355
49359
  results.nodeName = results.nodeName.substring( 0, lastDot );
49356
49360
  results.objectName = objectName;
@@ -49371,7 +49375,7 @@ class PropertyBinding {
49371
49375
 
49372
49376
  static findNode( root, nodeName ) {
49373
49377
 
49374
- if ( nodeName === undefined || nodeName === '' || nodeName === '.' || nodeName === - 1 || nodeName === root.name || nodeName === root.uuid ) {
49378
+ if ( nodeName === undefined || nodeName === '' || nodeName === '.' || nodeName === -1 || nodeName === root.name || nodeName === root.uuid ) {
49375
49379
 
49376
49380
  return root;
49377
49381
 
@@ -50330,7 +50334,7 @@ class AnimationAction {
50330
50334
  this._weightInterpolant = null;
50331
50335
 
50332
50336
  this.loop = LoopRepeat;
50333
- this._loopCount = - 1;
50337
+ this._loopCount = -1;
50334
50338
 
50335
50339
  // global mixer time when the action is to be started
50336
50340
  // it's set back to 'null' upon start of the action
@@ -50382,7 +50386,7 @@ class AnimationAction {
50382
50386
  this.enabled = true;
50383
50387
 
50384
50388
  this.time = 0; // restart clip
50385
- this._loopCount = - 1;// forget previous loops
50389
+ this._loopCount = -1;// forget previous loops
50386
50390
  this._startTime = null;// forget scheduling
50387
50391
 
50388
50392
  return this.stopFading().stopWarping();
@@ -50777,7 +50781,7 @@ class AnimationAction {
50777
50781
 
50778
50782
  if ( deltaTime === 0 ) {
50779
50783
 
50780
- if ( loopCount === - 1 ) return time;
50784
+ if ( loopCount === -1 ) return time;
50781
50785
 
50782
50786
  return ( pingPong && ( loopCount & 1 ) === 1 ) ? duration - time : time;
50783
50787
 
@@ -50785,7 +50789,7 @@ class AnimationAction {
50785
50789
 
50786
50790
  if ( loop === LoopOnce ) {
50787
50791
 
50788
- if ( loopCount === - 1 ) {
50792
+ if ( loopCount === -1 ) {
50789
50793
 
50790
50794
  // just started
50791
50795
 
@@ -50819,14 +50823,14 @@ class AnimationAction {
50819
50823
 
50820
50824
  this._mixer.dispatchEvent( {
50821
50825
  type: 'finished', action: this,
50822
- direction: deltaTime < 0 ? - 1 : 1
50826
+ direction: deltaTime < 0 ? -1 : 1
50823
50827
  } );
50824
50828
 
50825
50829
  }
50826
50830
 
50827
50831
  } else { // repetitive Repeat or PingPong
50828
50832
 
50829
- if ( loopCount === - 1 ) {
50833
+ if ( loopCount === -1 ) {
50830
50834
 
50831
50835
  // just started
50832
50836
 
@@ -50872,7 +50876,7 @@ class AnimationAction {
50872
50876
 
50873
50877
  this._mixer.dispatchEvent( {
50874
50878
  type: 'finished', action: this,
50875
- direction: deltaTime > 0 ? 1 : - 1
50879
+ direction: deltaTime > 0 ? 1 : -1
50876
50880
  } );
50877
50881
 
50878
50882
  } else {
@@ -51792,7 +51796,7 @@ class UniformsGroup extends EventDispatcher {
51792
51796
 
51793
51797
  const index = this.uniforms.indexOf( uniform );
51794
51798
 
51795
- if ( index !== - 1 ) this.uniforms.splice( index, 1 );
51799
+ if ( index !== -1 ) this.uniforms.splice( index, 1 );
51796
51800
 
51797
51801
  return this;
51798
51802
 
@@ -52002,7 +52006,7 @@ class Raycaster {
52002
52006
  } else if ( camera.isOrthographicCamera ) {
52003
52007
 
52004
52008
  this.ray.origin.set( coords.x, coords.y, ( camera.near + camera.far ) / ( camera.near - camera.far ) ).unproject( camera ); // set origin in plane of camera
52005
- this.ray.direction.set( 0, 0, - 1 ).transformDirection( camera.matrixWorld );
52009
+ this.ray.direction.set( 0, 0, -1 ).transformDirection( camera.matrixWorld );
52006
52010
  this.camera = camera;
52007
52011
 
52008
52012
  } else {
@@ -52018,7 +52022,7 @@ class Raycaster {
52018
52022
  _matrix.identity().extractRotation( controller.matrixWorld );
52019
52023
 
52020
52024
  this.ray.origin.setFromMatrixPosition( controller.matrixWorld );
52021
- this.ray.direction.set( 0, 0, - 1 ).applyMatrix4( _matrix );
52025
+ this.ray.direction.set( 0, 0, -1 ).applyMatrix4( _matrix );
52022
52026
 
52023
52027
  return this;
52024
52028
 
@@ -52148,7 +52152,7 @@ class Spherical {
52148
52152
  } else {
52149
52153
 
52150
52154
  this.theta = Math.atan2( x, z );
52151
- this.phi = Math.acos( clamp$1( y / this.radius, - 1, 1 ) );
52155
+ this.phi = Math.acos( clamp$1( y / this.radius, -1, 1 ) );
52152
52156
 
52153
52157
  }
52154
52158
 
@@ -52612,9 +52616,9 @@ class SpotLightHelper extends Object3D {
52612
52616
  const positions = [
52613
52617
  0, 0, 0, 0, 0, 1,
52614
52618
  0, 0, 0, 1, 0, 1,
52615
- 0, 0, 0, - 1, 0, 1,
52619
+ 0, 0, 0, -1, 0, 1,
52616
52620
  0, 0, 0, 0, 1, 1,
52617
- 0, 0, 0, 0, - 1, 1
52621
+ 0, 0, 0, 0, -1, 1
52618
52622
  ];
52619
52623
 
52620
52624
  for ( let i = 0, j = 1, l = 32; i < l; i ++, j ++ ) {
@@ -53386,40 +53390,40 @@ class CameraHelper extends LineSegments {
53386
53390
 
53387
53391
  // center / target
53388
53392
 
53389
- setPoint( 'c', pointMap, geometry, _camera$1, 0, 0, - 1 );
53393
+ setPoint( 'c', pointMap, geometry, _camera$1, 0, 0, -1 );
53390
53394
  setPoint( 't', pointMap, geometry, _camera$1, 0, 0, 1 );
53391
53395
 
53392
53396
  // near
53393
53397
 
53394
- setPoint( 'n1', pointMap, geometry, _camera$1, - w, - h, - 1 );
53395
- setPoint( 'n2', pointMap, geometry, _camera$1, w, - h, - 1 );
53396
- setPoint( 'n3', pointMap, geometry, _camera$1, - w, h, - 1 );
53397
- setPoint( 'n4', pointMap, geometry, _camera$1, w, h, - 1 );
53398
+ setPoint( 'n1', pointMap, geometry, _camera$1, -1, -1, -1 );
53399
+ setPoint( 'n2', pointMap, geometry, _camera$1, w, -1, -1 );
53400
+ setPoint( 'n3', pointMap, geometry, _camera$1, -1, h, -1 );
53401
+ setPoint( 'n4', pointMap, geometry, _camera$1, w, h, -1 );
53398
53402
 
53399
53403
  // far
53400
53404
 
53401
- setPoint( 'f1', pointMap, geometry, _camera$1, - w, - h, 1 );
53402
- setPoint( 'f2', pointMap, geometry, _camera$1, w, - h, 1 );
53403
- setPoint( 'f3', pointMap, geometry, _camera$1, - w, h, 1 );
53405
+ setPoint( 'f1', pointMap, geometry, _camera$1, -1, -1, 1 );
53406
+ setPoint( 'f2', pointMap, geometry, _camera$1, w, -1, 1 );
53407
+ setPoint( 'f3', pointMap, geometry, _camera$1, -1, h, 1 );
53404
53408
  setPoint( 'f4', pointMap, geometry, _camera$1, w, h, 1 );
53405
53409
 
53406
53410
  // up
53407
53411
 
53408
- setPoint( 'u1', pointMap, geometry, _camera$1, w * 0.7, h * 1.1, - 1 );
53409
- setPoint( 'u2', pointMap, geometry, _camera$1, - w * 0.7, h * 1.1, - 1 );
53410
- setPoint( 'u3', pointMap, geometry, _camera$1, 0, h * 2, - 1 );
53412
+ setPoint( 'u1', pointMap, geometry, _camera$1, w * 0.7, h * 1.1, -1 );
53413
+ setPoint( 'u2', pointMap, geometry, _camera$1, -1 * 0.7, h * 1.1, -1 );
53414
+ setPoint( 'u3', pointMap, geometry, _camera$1, 0, h * 2, -1 );
53411
53415
 
53412
53416
  // cross
53413
53417
 
53414
- setPoint( 'cf1', pointMap, geometry, _camera$1, - w, 0, 1 );
53418
+ setPoint( 'cf1', pointMap, geometry, _camera$1, -1, 0, 1 );
53415
53419
  setPoint( 'cf2', pointMap, geometry, _camera$1, w, 0, 1 );
53416
- setPoint( 'cf3', pointMap, geometry, _camera$1, 0, - h, 1 );
53420
+ setPoint( 'cf3', pointMap, geometry, _camera$1, 0, -1, 1 );
53417
53421
  setPoint( 'cf4', pointMap, geometry, _camera$1, 0, h, 1 );
53418
53422
 
53419
- setPoint( 'cn1', pointMap, geometry, _camera$1, - w, 0, - 1 );
53420
- setPoint( 'cn2', pointMap, geometry, _camera$1, w, 0, - 1 );
53421
- setPoint( 'cn3', pointMap, geometry, _camera$1, 0, - h, - 1 );
53422
- setPoint( 'cn4', pointMap, geometry, _camera$1, 0, h, - 1 );
53423
+ setPoint( 'cn1', pointMap, geometry, _camera$1, -1, 0, -1 );
53424
+ setPoint( 'cn2', pointMap, geometry, _camera$1, w, 0, -1 );
53425
+ setPoint( 'cn3', pointMap, geometry, _camera$1, 0, -1, -1 );
53426
+ setPoint( 'cn4', pointMap, geometry, _camera$1, 0, h, -1 );
53423
53427
 
53424
53428
  geometry.getAttribute( 'position' ).needsUpdate = true;
53425
53429
 
@@ -53566,7 +53570,7 @@ class Box3Helper extends LineSegments {
53566
53570
 
53567
53571
  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 ] );
53568
53572
 
53569
- 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 ];
53573
+ 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 ];
53570
53574
 
53571
53575
  const geometry = new BufferGeometry();
53572
53576
 
@@ -53615,7 +53619,7 @@ class PlaneHelper extends Line {
53615
53619
 
53616
53620
  const color = hex;
53617
53621
 
53618
- 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 ];
53622
+ 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 ];
53619
53623
 
53620
53624
  const geometry = new BufferGeometry();
53621
53625
  geometry.setAttribute( 'position', new Float32BufferAttribute( positions, 3 ) );
@@ -53629,7 +53633,7 @@ class PlaneHelper extends Line {
53629
53633
 
53630
53634
  this.size = size;
53631
53635
 
53632
- const positions2 = [ 1, 1, 0, - 1, 1, 0, - 1, - 1, 0, 1, 1, 0, - 1, - 1, 0, 1, - 1, 0 ];
53636
+ const positions2 = [ 1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0 ];
53633
53637
 
53634
53638
  const geometry2 = new BufferGeometry();
53635
53639
  geometry2.setAttribute( 'position', new Float32BufferAttribute( positions2, 3 ) );
@@ -53683,7 +53687,7 @@ class ArrowHelper extends Object3D {
53683
53687
  _lineGeometry.setAttribute( 'position', new Float32BufferAttribute( [ 0, 0, 0, 0, 1, 0 ], 3 ) );
53684
53688
 
53685
53689
  _coneGeometry = new CylinderGeometry( 0, 0.5, 1, 5, 1 );
53686
- _coneGeometry.translate( 0, - 0.5, 0 );
53690
+ _coneGeometry.translate( 0, -0.5, 0 );
53687
53691
 
53688
53692
  }
53689
53693
 
@@ -53710,7 +53714,7 @@ class ArrowHelper extends Object3D {
53710
53714
 
53711
53715
  this.quaternion.set( 0, 0, 0, 1 );
53712
53716
 
53713
- } else if ( dir.y < - 0.99999 ) {
53717
+ } else if ( dir.y < -0.99999 ) {
53714
53718
 
53715
53719
  this.quaternion.set( 1, 0, 0, 0 );
53716
53720
 
@@ -54121,7 +54125,7 @@ class Controls extends EventDispatcher {
54121
54125
 
54122
54126
  this.enabled = true;
54123
54127
 
54124
- this.state = - 1;
54128
+ this.state = -1;
54125
54129
 
54126
54130
  this.keys = {};
54127
54131
  this.mouseButtons = { LEFT: null, MIDDLE: null, RIGHT: null };
@@ -54517,7 +54521,7 @@ function getCacheKey( object, force = false ) {
54517
54521
 
54518
54522
  for ( const { property, childNode } of getNodeChildren( object ) ) {
54519
54523
 
54520
- values.push( values, cyrb53( property.slice( 0, - 4 ) ), childNode.getCacheKey( force ) );
54524
+ values.push( values, cyrb53( property.slice( 0, -4 ) ), childNode.getCacheKey( force ) );
54521
54525
 
54522
54526
  }
54523
54527
 
@@ -54634,7 +54638,7 @@ function getValueType( value ) {
54634
54638
 
54635
54639
  function getValueFromType( type, ...params ) {
54636
54640
 
54637
- const last4 = type ? type.slice( - 4 ) : undefined;
54641
+ const last4 = type ? type.slice( -4 ) : undefined;
54638
54642
 
54639
54643
  if ( params.length === 1 ) { // ensure same behaviour as in NodeBuilder.format()
54640
54644
 
@@ -56260,7 +56264,7 @@ class ShaderNodeInternal extends Node {
56260
56264
 
56261
56265
  const bools = [ false, true ];
56262
56266
  const uints = [ 0, 1, 2, 3 ];
56263
- const ints = [ - 1, - 2 ];
56267
+ const ints = [ -1, -2 ];
56264
56268
  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 ];
56265
56269
 
56266
56270
  const boolsCacheMap = new Map();
@@ -63831,7 +63835,7 @@ class Line2NodeMaterial extends NodeMaterial {
63831
63835
 
63832
63836
  const a = cameraProjectionMatrix.element( 2 ).element( 2 ); // 3nd entry in 3th column
63833
63837
  const b = cameraProjectionMatrix.element( 3 ).element( 2 ); // 3nd entry in 4th column
63834
- const nearEstimate = b.mul( - 0.5 ).div( a );
63838
+ const nearEstimate = b.mul( -0.5 ).div( a );
63835
63839
 
63836
63840
  const alpha = nearEstimate.sub( start.z ).div( end.z.sub( start.z ) );
63837
63841
 
@@ -63870,7 +63874,7 @@ class Line2NodeMaterial extends NodeMaterial {
63870
63874
  // but we need to perform ndc-space calculations in the shader, so we must address this issue directly
63871
63875
  // perhaps there is a more elegant solution -- WestLangley
63872
63876
 
63873
- const perspective = cameraProjectionMatrix.element( 2 ).element( 3 ).equal( - 1.0 ); // 4th entry in the 3rd column
63877
+ const perspective = cameraProjectionMatrix.element( 2 ).element( 3 ).equal( -1 ); // 4th entry in the 3rd column
63874
63878
 
63875
63879
  If( perspective, () => {
63876
63880
 
@@ -64036,7 +64040,7 @@ class Line2NodeMaterial extends NodeMaterial {
64036
64040
  const vLineDistance = varying( lineDistance.add( materialLineDashOffset ) );
64037
64041
  const vLineDistanceOffset = offsetNode ? vLineDistance.add( offsetNode ) : vLineDistance;
64038
64042
 
64039
- vUv.y.lessThan( - 1.0 ).or( vUv.y.greaterThan( 1.0 ) ).discard(); // discard endcaps
64043
+ vUv.y.lessThan( -1 ).or( vUv.y.greaterThan( 1.0 ) ).discard(); // discard endcaps
64040
64044
  vLineDistanceOffset.mod( dashSize.add( gapSize ) ).greaterThan( dashSize ).discard(); // todo - FIX
64041
64045
 
64042
64046
  }
@@ -64254,7 +64258,7 @@ class EquirectUVNode extends TempNode {
64254
64258
  const dir = this.dirNode;
64255
64259
 
64256
64260
  const u = dir.z.atan2( dir.x ).mul( 1 / ( Math.PI * 2 ) ).add( 0.5 );
64257
- const v = dir.y.clamp( - 1.0, 1.0 ).asin().mul( 1 / Math.PI ).add( 0.5 );
64261
+ const v = dir.y.clamp( -1, 1.0 ).asin().mul( 1 / Math.PI ).add( 0.5 );
64258
64262
 
64259
64263
  return vec2( u, v );
64260
64264
 
@@ -64692,7 +64696,7 @@ const F_Schlick = /*@__PURE__*/ Fn( ( { f0, f90, dotVH } ) => {
64692
64696
 
64693
64697
  // Optimized variant (presented by Epic at SIGGRAPH '13)
64694
64698
  // https://cdn2.unrealengine.com/Resources/files/2013SiggraphPresentationsNotes-26915738.pdf
64695
- const fresnel = dotVH.mul( - 5.55473 ).sub( 6.98316 ).mul( dotVH ).exp2();
64699
+ const fresnel = dotVH.mul( -5.55473 ).sub( 6.98316 ).mul( dotVH ).exp2();
64696
64700
 
64697
64701
  return f0.mul( fresnel.oneMinus() ).add( f90.mul( fresnel ) );
64698
64702
 
@@ -65038,15 +65042,15 @@ const BRDF_GGX = /*@__PURE__*/ Fn( ( inputs ) => {
65038
65042
  // https://www.unrealengine.com/blog/physically-based-shading-on-mobile
65039
65043
  const DFGApprox = /*@__PURE__*/ Fn( ( { roughness, dotNV } ) => {
65040
65044
 
65041
- const c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );
65045
+ const c0 = vec4( -1, -0.0275, -0.572, 0.022 );
65042
65046
 
65043
- const c1 = vec4( 1, 0.0425, 1.04, - 0.04 );
65047
+ const c1 = vec4( 1, 0.0425, 1.04, -0.04 );
65044
65048
 
65045
65049
  const r = roughness.mul( c0 ).add( c1 );
65046
65050
 
65047
- const a004 = r.x.mul( r.x ).min( dotNV.mul( - 9.28 ).exp2() ).mul( r.x ).add( r.y );
65051
+ const a004 = r.x.mul( r.x ).min( dotNV.mul( -9.28 ).exp2() ).mul( r.x ).add( r.y );
65048
65052
 
65049
- const fab = vec2( - 1.04, 1.04 ).mul( a004 ).add( r.zw );
65053
+ const fab = vec2( -1.04, 1.04 ).mul( a004 ).add( r.zw );
65050
65054
 
65051
65055
  return fab;
65052
65056
 
@@ -65272,7 +65276,7 @@ const w0 = ( a ) => mul( bC, mul( a, mul( a, a.negate().add( 3.0 ) ).sub( 3.0 )
65272
65276
 
65273
65277
  const w1 = ( a ) => mul( bC, mul( a, mul( a, mul( 3.0, a ).sub( 6.0 ) ) ).add( 4.0 ) );
65274
65278
 
65275
- const w2 = ( a ) => mul( bC, mul( a, mul( a, mul( - 3.0, a ).add( 3.0 ) ).add( 3.0 ) ).add( 1.0 ) );
65279
+ const w2 = ( a ) => mul( bC, mul( a, mul( a, mul( -3, a ).add( 3.0 ) ).add( 3.0 ) ).add( 1.0 ) );
65276
65280
 
65277
65281
  const w3 = ( a ) => mul( bC, pow( a, 3 ) );
65278
65282
 
@@ -65281,7 +65285,7 @@ const g0 = ( a ) => w0( a ).add( w1( a ) );
65281
65285
  const g1 = ( a ) => w2( a ).add( w3( a ) );
65282
65286
 
65283
65287
  // h0 and h1 are the two offset functions
65284
- const h0 = ( a ) => add( - 1.0, w1( a ).div( w0( a ).add( w1( a ) ) ) );
65288
+ const h0 = ( a ) => add( -1, w1( a ).div( w0( a ).add( w1( a ) ) ) );
65285
65289
 
65286
65290
  const h1 = ( a ) => add( 1.0, w3( a ).div( w2( a ).add( w3( a ) ) ) );
65287
65291
 
@@ -65490,9 +65494,9 @@ const getIBLVolumeRefraction = /*@__PURE__*/ Fn( ( [ n, v, roughness, diffuseCol
65490
65494
 
65491
65495
  // XYZ to linear-sRGB color space
65492
65496
  const XYZ_TO_REC709 = /*@__PURE__*/ mat3(
65493
- 3.2404542, - 0.9692660, 0.0556434,
65494
- - 1.5371385, 1.8760108, - 0.2040259,
65495
- - 0.4985314, 0.0415560, 1.0572252
65497
+ 3.2404542, -0.969266, 0.0556434,
65498
+ -1.5371385, 1.8760108, -0.2040259,
65499
+ -0.4985314, 0.0415560, 1.0572252
65496
65500
  );
65497
65501
 
65498
65502
  // Assume air interface for top
@@ -65521,7 +65525,7 @@ const evalSensitivity = ( OPD, shift ) => {
65521
65525
  const pos = vec3( 1.6810e+06, 1.7953e+06, 2.2084e+06 );
65522
65526
  const VAR = vec3( 4.3278e+09, 9.3046e+09, 6.6121e+09 );
65523
65527
 
65524
- 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() );
65528
+ 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() );
65525
65529
 
65526
65530
  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() );
65527
65531
  xyz = vec3( xyz.x.add( x ), xyz.y, xyz.z ).div( 1.0685e-7 );
@@ -65620,8 +65624,8 @@ const IBLSheenBRDF = /*@__PURE__*/ Fn( ( { normal, viewDir, roughness } ) => {
65620
65624
 
65621
65625
  const a = select(
65622
65626
  roughness.lessThan( 0.25 ),
65623
- float( - 339.2 ).mul( r2 ).add( float( 161.4 ).mul( roughness ) ).sub( 25.9 ),
65624
- float( - 8.48 ).mul( r2 ).add( float( 14.3 ).mul( roughness ) ).sub( 9.95 )
65627
+ float( -339.2 ).mul( r2 ).add( float( 161.4 ).mul( roughness ) ).sub( 25.9 ),
65628
+ float( -8.48 ).mul( r2 ).add( float( 14.3 ).mul( roughness ) ).sub( 9.95 )
65625
65629
  );
65626
65630
 
65627
65631
  const b = select(
@@ -65880,7 +65884,7 @@ class PhysicalLightingModel extends LightingModel {
65880
65884
  const dotNV = transformedNormalView.dot( positionViewDirection ).clamp(); // @ TODO: Move to core dotNV
65881
65885
 
65882
65886
  const aoNV = dotNV.add( ambientOcclusion );
65883
- const aoExp = roughness.mul( - 16.0 ).oneMinus().negate().exp2();
65887
+ const aoExp = roughness.mul( -16 ).oneMinus().negate().exp2();
65884
65888
 
65885
65889
  const aoNode = ambientOcclusion.sub( aoNV.pow( aoExp ).oneMinus() ).clamp();
65886
65890
 
@@ -65937,9 +65941,9 @@ class PhysicalLightingModel extends LightingModel {
65937
65941
  // These defines must match with PMREMGenerator
65938
65942
 
65939
65943
  const cubeUV_r0 = /*@__PURE__*/ float( 1.0 );
65940
- const cubeUV_m0 = /*@__PURE__*/ float( - 2.0 );
65944
+ const cubeUV_m0 = /*@__PURE__*/ float( -2 );
65941
65945
  const cubeUV_r1 = /*@__PURE__*/ float( 0.8 );
65942
- const cubeUV_m1 = /*@__PURE__*/ float( - 1.0 );
65946
+ const cubeUV_m1 = /*@__PURE__*/ float( -1 );
65943
65947
  const cubeUV_r4 = /*@__PURE__*/ float( 0.4 );
65944
65948
  const cubeUV_m4 = /*@__PURE__*/ float( 2.0 );
65945
65949
  const cubeUV_r5 = /*@__PURE__*/ float( 0.305 );
@@ -65957,7 +65961,7 @@ const cubeUV_minTileSize = /*@__PURE__*/ float( 16.0 );
65957
65961
  const getFace = /*@__PURE__*/ Fn( ( [ direction ] ) => {
65958
65962
 
65959
65963
  const absDirection = vec3( abs( direction ) ).toVar();
65960
- const face = float( - 1.0 ).toVar();
65964
+ const face = float( -1 ).toVar();
65961
65965
 
65962
65966
  If( absDirection.x.greaterThan( absDirection.z ), () => {
65963
65967
 
@@ -66059,7 +66063,7 @@ const roughnessToMip = /*@__PURE__*/ Fn( ( [ roughness ] ) => {
66059
66063
 
66060
66064
  } ).Else( () => {
66061
66065
 
66062
- mip.assign( float( - 2.0 ).mul( log2( mul( 1.16, roughness ) ) ) ); // 1.16 = 1.79^0.25
66066
+ mip.assign( float( -2 ).mul( log2( mul( 1.16, roughness ) ) ) ); // 1.16 = 1.79^0.25
66063
66067
 
66064
66068
  } );
66065
66069
 
@@ -66087,25 +66091,25 @@ const getDirection = /*@__PURE__*/ Fn( ( [ uv_immutable, face ] ) => {
66087
66091
  } ).ElseIf( face.equal( 1.0 ), () => {
66088
66092
 
66089
66093
  direction.assign( direction.xzy );
66090
- direction.xz.mulAssign( - 1.0 ); // ( -u, 1, -v ) pos y
66094
+ direction.xz.mulAssign( -1 ); // ( -u, 1, -v ) pos y
66091
66095
 
66092
66096
  } ).ElseIf( face.equal( 2.0 ), () => {
66093
66097
 
66094
- direction.x.mulAssign( - 1.0 ); // ( -u, v, 1 ) pos z
66098
+ direction.x.mulAssign( -1 ); // ( -u, v, 1 ) pos z
66095
66099
 
66096
66100
  } ).ElseIf( face.equal( 3.0 ), () => {
66097
66101
 
66098
66102
  direction.assign( direction.zyx );
66099
- direction.xz.mulAssign( - 1.0 ); // ( -1, v, -u ) neg x
66103
+ direction.xz.mulAssign( -1 ); // ( -1, v, -u ) neg x
66100
66104
 
66101
66105
  } ).ElseIf( face.equal( 4.0 ), () => {
66102
66106
 
66103
66107
  direction.assign( direction.xzy );
66104
- direction.xy.mulAssign( - 1.0 ); // ( -u, -1, v ) neg y
66108
+ direction.xy.mulAssign( -1 ); // ( -u, -1, v ) neg y
66105
66109
 
66106
66110
  } ).ElseIf( face.equal( 5.0 ), () => {
66107
66111
 
66108
- direction.z.mulAssign( - 1.0 ); // ( u, v, -1 ) neg zS
66112
+ direction.z.mulAssign( -1 ); // ( u, v, -1 ) neg zS
66109
66113
 
66110
66114
  } );
66111
66115
 
@@ -66208,7 +66212,7 @@ const blur = /*@__PURE__*/ Fn( ( { n, latitudinal, poleAxis, outputDirection, we
66208
66212
  } );
66209
66213
 
66210
66214
  const theta = float( dTheta.mul( float( i ) ) ).toVar();
66211
- 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 } ) ) );
66215
+ 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 } ) ) );
66212
66216
  gl_FragColor.addAssign( weights.element( i ).mul( getSample( { theta, axis, outputDirection, mipInt, envMap, CUBEUV_TEXEL_WIDTH, CUBEUV_TEXEL_HEIGHT, CUBEUV_MAX_MIP } ) ) );
66213
66217
 
66214
66218
  } );
@@ -66237,7 +66241,7 @@ function _getPMREMFromTexture( texture ) {
66237
66241
 
66238
66242
  let cacheTexture = _cache.get( texture );
66239
66243
 
66240
- const pmremVersion = cacheTexture !== undefined ? cacheTexture.pmremVersion : - 1;
66244
+ const pmremVersion = cacheTexture !== undefined ? cacheTexture.pmremVersion : -1;
66241
66245
 
66242
66246
  if ( pmremVersion !== texture.pmremVersion ) {
66243
66247
 
@@ -66341,7 +66345,7 @@ class PMREMNode extends TempNode {
66341
66345
 
66342
66346
  let pmrem = this._pmrem;
66343
66347
 
66344
- const pmremVersion = pmrem ? pmrem.pmremVersion : - 1;
66348
+ const pmremVersion = pmrem ? pmrem.pmremVersion : -1;
66345
66349
  const texture = this._value;
66346
66350
 
66347
66351
  if ( pmremVersion !== texture.pmremVersion ) {
@@ -67415,23 +67419,23 @@ const normal = Fn( ( { texture, uv } ) => {
67415
67419
 
67416
67420
  } ).ElseIf( uv.x.greaterThan( 1 - epsilon ), () => {
67417
67421
 
67418
- ret.assign( vec3( - 1, 0, 0 ) );
67422
+ ret.assign( vec3( -1, 0, 0 ) );
67419
67423
 
67420
67424
  } ).ElseIf( uv.y.greaterThan( 1 - epsilon ), () => {
67421
67425
 
67422
- ret.assign( vec3( 0, - 1, 0 ) );
67426
+ ret.assign( vec3( 0, -1, 0 ) );
67423
67427
 
67424
67428
  } ).ElseIf( uv.z.greaterThan( 1 - epsilon ), () => {
67425
67429
 
67426
- ret.assign( vec3( 0, 0, - 1 ) );
67430
+ ret.assign( vec3( 0, 0, -1 ) );
67427
67431
 
67428
67432
  } ).Else( () => {
67429
67433
 
67430
67434
  const step = 0.01;
67431
67435
 
67432
- 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 );
67433
- 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 );
67434
- 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 );
67436
+ 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 );
67437
+ 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 );
67438
+ 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 );
67435
67439
 
67436
67440
  ret.assign( vec3( x, y, z ) );
67437
67441
 
@@ -67520,7 +67524,7 @@ class VolumeNodeMaterial extends NodeMaterial {
67520
67524
 
67521
67525
  const hitBox = Fn( ( { orig, dir } ) => {
67522
67526
 
67523
- const box_min = vec3( - 0.5 );
67527
+ const box_min = vec3( -0.5 );
67524
67528
  const box_max = vec3( 0.5 );
67525
67529
 
67526
67530
  const inv_dir = dir.reciprocal();
@@ -68648,7 +68652,7 @@ const EXTRA_LOD_SIGMA = [ 0.125, 0.215, 0.35, 0.446, 0.526, 0.582 ];
68648
68652
  // samples and exit early, but not recompile the shader.
68649
68653
  const MAX_SAMPLES = 20;
68650
68654
 
68651
- const _flatCamera = /*@__PURE__*/ new OrthographicCamera( - 1, 1, 1, - 1, 0, 1 );
68655
+ const _flatCamera = /*@__PURE__*/ new OrthographicCamera( -1, 1, 1, -1, 0, 1 );
68652
68656
  const _cubeCamera = /*@__PURE__*/ new PerspectiveCamera( 90, 1 );
68653
68657
  const _clearColor$1 = /*@__PURE__*/ new Color();
68654
68658
  let _oldTarget = null;
@@ -68668,9 +68672,9 @@ const _axisDirections = [
68668
68672
  /*@__PURE__*/ new Vector3( INV_PHI, 0, PHI ),
68669
68673
  /*@__PURE__*/ new Vector3( 0, PHI, - INV_PHI ),
68670
68674
  /*@__PURE__*/ new Vector3( 0, PHI, INV_PHI ),
68671
- /*@__PURE__*/ new Vector3( - 1, 1, - 1 ),
68672
- /*@__PURE__*/ new Vector3( 1, 1, - 1 ),
68673
- /*@__PURE__*/ new Vector3( - 1, 1, 1 ),
68675
+ /*@__PURE__*/ new Vector3( -1, 1, -1 ),
68676
+ /*@__PURE__*/ new Vector3( 1, 1, -1 ),
68677
+ /*@__PURE__*/ new Vector3( -1, 1, 1 ),
68674
68678
  /*@__PURE__*/ new Vector3( 1, 1, 1 )
68675
68679
  ];
68676
68680
 
@@ -68935,8 +68939,8 @@ class PMREMGenerator {
68935
68939
  cubeCamera.far = far;
68936
68940
 
68937
68941
  // px, py, pz, nx, ny, nz
68938
- const upSign = [ - 1, 1, - 1, - 1, - 1, - 1 ];
68939
- const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ];
68942
+ const upSign = [ -1, 1, -1, -1, -1, -1 ];
68943
+ const forwardSign = [ 1, 1, 1, -1, -1, -1 ];
68940
68944
 
68941
68945
  const renderer = this._renderer;
68942
68946
 
@@ -69251,7 +69255,7 @@ function _createPlanes( lodMax ) {
69251
69255
  for ( let face = 0; face < cubeFaces; face ++ ) {
69252
69256
 
69253
69257
  const x = ( face % 3 ) * 2 / 3 - 1;
69254
- const y = face > 2 ? 0 : - 1;
69258
+ const y = face > 2 ? 0 : -1;
69255
69259
  const coordinates = [
69256
69260
  x, y, 0,
69257
69261
  x + 2 / 3, y, 0,
@@ -70389,7 +70393,7 @@ class NodeBuilder {
70389
70393
 
70390
70394
  removeFlowTab() {
70391
70395
 
70392
- this.tab = this.tab.slice( 0, - 1 );
70396
+ this.tab = this.tab.slice( 0, -1 );
70393
70397
 
70394
70398
  return this;
70395
70399
 
@@ -71132,7 +71136,7 @@ function getTextureIndex( textures, name ) {
71132
71136
 
71133
71137
  }
71134
71138
 
71135
- return - 1;
71139
+ return -1;
71136
71140
 
71137
71141
  }
71138
71142
 
@@ -71237,7 +71241,7 @@ class FunctionOverloadingNode extends Node {
71237
71241
  if ( candidateFnCall === null ) {
71238
71242
 
71239
71243
  let candidateFn = null;
71240
- let candidateScore = - 1;
71244
+ let candidateScore = -1;
71241
71245
 
71242
71246
  for ( const functionNode of this.functionNodes ) {
71243
71247
 
@@ -71657,7 +71661,7 @@ const _normal = new Vector3();
71657
71661
  const _reflectorWorldPosition = new Vector3();
71658
71662
  const _cameraWorldPosition = new Vector3();
71659
71663
  const _rotationMatrix = new Matrix4();
71660
- const _lookAtPosition = new Vector3( 0, 0, - 1 );
71664
+ const _lookAtPosition = new Vector3( 0, 0, -1 );
71661
71665
  const clipPlane = new Vector4();
71662
71666
 
71663
71667
  const _view = new Vector3();
@@ -71805,7 +71809,7 @@ class ReflectorNode extends TextureNode {
71805
71809
 
71806
71810
  _rotationMatrix.extractRotation( camera.matrixWorld );
71807
71811
 
71808
- _lookAtPosition.set( 0, 0, - 1 );
71812
+ _lookAtPosition.set( 0, 0, -1 );
71809
71813
  _lookAtPosition.applyMatrix4( _rotationMatrix );
71810
71814
  _lookAtPosition.add( _cameraWorldPosition );
71811
71815
 
@@ -71839,7 +71843,7 @@ class ReflectorNode extends TextureNode {
71839
71843
 
71840
71844
  _q.x = ( Math.sign( clipPlane.x ) + projectionMatrix.elements[ 8 ] ) / projectionMatrix.elements[ 0 ];
71841
71845
  _q.y = ( Math.sign( clipPlane.y ) + projectionMatrix.elements[ 9 ] ) / projectionMatrix.elements[ 5 ];
71842
- _q.z = - 1.0;
71846
+ _q.z = -1;
71843
71847
  _q.w = ( 1.0 + projectionMatrix.elements[ 10 ] ) / projectionMatrix.elements[ 14 ];
71844
71848
 
71845
71849
  // Calculate the scaled plane vector
@@ -71882,7 +71886,7 @@ const reflector = ( parameters ) => nodeObject( new ReflectorNode( parameters )
71882
71886
 
71883
71887
  // Helper for passes that need to fill the viewport with a single quad.
71884
71888
 
71885
- const _camera = /*@__PURE__*/ new OrthographicCamera( - 1, 1, 1, - 1, 0, 1 );
71889
+ const _camera = /*@__PURE__*/ new OrthographicCamera( -1, 1, 1, -1, 0, 1 );
71886
71890
 
71887
71891
  // https://github.com/mrdoob/three.js/pull/21358
71888
71892
 
@@ -71892,9 +71896,9 @@ class QuadGeometry extends BufferGeometry {
71892
71896
 
71893
71897
  super();
71894
71898
 
71895
- const uv = flipY === false ? [ 0, - 1, 0, 1, 2, 1 ] : [ 0, 2, 0, 0, 2, 0 ];
71899
+ const uv = flipY === false ? [ 0, -1, 0, 1, 2, 1 ] : [ 0, 2, 0, 0, 2, 0 ];
71896
71900
 
71897
- this.setAttribute( 'position', new Float32BufferAttribute( [ - 1, 3, 0, - 1, - 1, 0, 3, - 1, 0 ], 3 ) );
71901
+ this.setAttribute( 'position', new Float32BufferAttribute( [ -1, 3, 0, -1, -1, 0, 3, -1, 0 ], 3 ) );
71898
71902
  this.setAttribute( 'uv', new Float32BufferAttribute( uv, 2 ) );
71899
71903
 
71900
71904
  }
@@ -73088,7 +73092,7 @@ class GaussianBlurNode extends TempNode {
73088
73092
 
73089
73093
  for ( let i = 0; i < kernelRadius; i ++ ) {
73090
73094
 
73091
- coefficients.push( 0.39894 * Math.exp( - 0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
73095
+ coefficients.push( 0.39894 * Math.exp( -0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
73092
73096
 
73093
73097
  }
73094
73098
 
@@ -73259,7 +73263,7 @@ const vibrance = /*@__PURE__*/ Fn( ( [ color, adjustment = float( 1 ) ] ) => {
73259
73263
  const average = add( color.r, color.g, color.b ).div( 3.0 );
73260
73264
 
73261
73265
  const mx = color.r.max( color.g.max( color.b ) );
73262
- const amt = mx.sub( average ).mul( adjustment ).mul( - 3.0 );
73266
+ const amt = mx.sub( average ).mul( adjustment ).mul( -3 );
73263
73267
 
73264
73268
  return mix( color.rgb, mx, amt );
73265
73269
 
@@ -73462,26 +73466,26 @@ class SobelOperatorNode extends TempNode {
73462
73466
 
73463
73467
  // kernel definition (in glsl matrices are filled in column-major order)
73464
73468
 
73465
- const Gx = mat3( - 1, - 2, - 1, 0, 0, 0, 1, 2, 1 ); // x direction kernel
73466
- const Gy = mat3( - 1, 0, 1, - 2, 0, 2, - 1, 0, 1 ); // y direction kernel
73469
+ const Gx = mat3( -1, -2, -1, 0, 0, 0, 1, 2, 1 ); // x direction kernel
73470
+ const Gy = mat3( -1, 0, 1, -2, 0, 2, -1, 0, 1 ); // y direction kernel
73467
73471
 
73468
73472
  // fetch the 3x3 neighbourhood of a fragment
73469
73473
 
73470
73474
  // first column
73471
73475
 
73472
- const tx0y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( - 1, - 1 ) ) ) ).xyz );
73473
- const tx0y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( - 1, 0 ) ) ) ).xyz );
73474
- const tx0y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( - 1, 1 ) ) ) ).xyz );
73476
+ const tx0y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( -1, -1 ) ) ) ).xyz );
73477
+ const tx0y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( -1, 0 ) ) ) ).xyz );
73478
+ const tx0y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( -1, 1 ) ) ) ).xyz );
73475
73479
 
73476
73480
  // second column
73477
73481
 
73478
- const tx1y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, - 1 ) ) ) ).xyz );
73482
+ const tx1y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, -1 ) ) ) ).xyz );
73479
73483
  const tx1y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, 0 ) ) ) ).xyz );
73480
73484
  const tx1y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 0, 1 ) ) ) ).xyz );
73481
73485
 
73482
73486
  // third column
73483
73487
 
73484
- const tx2y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, - 1 ) ) ) ).xyz );
73488
+ const tx2y0 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, -1 ) ) ) ).xyz );
73485
73489
  const tx2y1 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, 0 ) ) ) ).xyz );
73486
73490
  const tx2y2 = luminance( sampleTexture( uvNode.add( texel.mul( vec2( 1, 1 ) ) ) ).xyz );
73487
73491
 
@@ -73591,42 +73595,42 @@ class DepthOfFieldNode extends TempNode {
73591
73595
  col = col.add( sampleTexture( uvNode.add( vec2( 0.0, 0.4 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73592
73596
  col = col.add( sampleTexture( uvNode.add( vec2( 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73593
73597
  col = col.add( sampleTexture( uvNode.add( vec2( 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73594
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73598
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73595
73599
  col = col.add( sampleTexture( uvNode.add( vec2( 0.40, 0.0 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73596
- col = col.add( sampleTexture( uvNode.add( vec2( 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73597
- col = col.add( sampleTexture( uvNode.add( vec2( 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73598
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73599
- col = col.add( sampleTexture( uvNode.add( vec2( 0.0, - 0.4 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73600
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73601
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73600
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73601
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73602
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73603
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.0, -0.4 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73604
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73605
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73602
73606
  col = col.add( sampleTexture( uvNode.add( vec2( 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73603
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73604
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73605
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73606
- col = col.add( sampleTexture( uvNode.add( vec2( 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73607
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73608
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73609
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73610
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur ) ) ) );
73607
73611
  col = col.add( sampleTexture( uvNode.add( vec2( 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73608
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73609
- col = col.add( sampleTexture( uvNode.add( vec2( 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73610
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73611
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73612
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73613
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73614
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73615
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.15, 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73612
73616
  col = col.add( sampleTexture( uvNode.add( vec2( 0.37, 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73613
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.37, - 0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73614
- col = col.add( sampleTexture( uvNode.add( vec2( 0.15, - 0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73617
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.37, -0.15 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73618
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.15, -0.37 ).mul( aspectcorrect ).mul( dofblur9 ) ) ) );
73615
73619
  col = col.add( sampleTexture( uvNode.add( vec2( 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73616
73620
  col = col.add( sampleTexture( uvNode.add( vec2( 0.40, 0.0 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73617
- col = col.add( sampleTexture( uvNode.add( vec2( 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73618
- col = col.add( sampleTexture( uvNode.add( vec2( 0.0, - 0.4 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73619
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73620
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73621
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73621
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73622
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.0, -0.4 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73623
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73624
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73625
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73622
73626
  col = col.add( sampleTexture( uvNode.add( vec2( 0.0, 0.4 ).mul( aspectcorrect ).mul( dofblur7 ) ) ) );
73623
73627
  col = col.add( sampleTexture( uvNode.add( vec2( 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73624
73628
  col = col.add( sampleTexture( uvNode.add( vec2( 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73625
- col = col.add( sampleTexture( uvNode.add( vec2( 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73626
- col = col.add( sampleTexture( uvNode.add( vec2( 0.0, - 0.4 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73627
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73628
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73629
- col = col.add( sampleTexture( uvNode.add( vec2( - 0.29, - 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73629
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73630
+ col = col.add( sampleTexture( uvNode.add( vec2( 0.0, -0.4 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73631
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, 0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73632
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.4, 0.0 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73633
+ col = col.add( sampleTexture( uvNode.add( vec2( -0.29, -0.29 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73630
73634
  col = col.add( sampleTexture( uvNode.add( vec2( 0.0, 0.4 ).mul( aspectcorrect ).mul( dofblur4 ) ) ) );
73631
73635
 
73632
73636
  col = col.div( 41 );
@@ -73980,7 +73984,7 @@ class GTAONode extends TempNode {
73980
73984
  const noiseTexel = sampleNoise( noiseUv );
73981
73985
  const randomVec = noiseTexel.xyz.mul( 2.0 ).sub( 1.0 );
73982
73986
  const tangent = vec3( randomVec.xy, 0.0 ).normalize();
73983
- const bitangent = vec3( tangent.y.mul( - 1.0 ), tangent.x, 0.0 );
73987
+ const bitangent = vec3( tangent.y.mul( -1 ), tangent.x, 0.0 );
73984
73988
  const kernelMatrix = mat3( tangent, bitangent, vec3( 0.0, 0.0, 1.0 ) );
73985
73989
 
73986
73990
  const DIRECTIONS = this.SAMPLES.lessThan( 30 ).select( 3, 5 );
@@ -74112,7 +74116,7 @@ function generateMagicSquare( size ) {
74112
74116
 
74113
74117
  for ( let num = 1; num <= noiseSquareSize; ) {
74114
74118
 
74115
- if ( i === - 1 && j === noiseSize ) {
74119
+ if ( i === -1 && j === noiseSize ) {
74116
74120
 
74117
74121
  j = noiseSize - 2;
74118
74122
  i = 0;
@@ -74374,7 +74378,7 @@ class FXAANode extends TempNode {
74374
74378
 
74375
74379
  setup() {
74376
74380
 
74377
- const textureNode = this.textureNode.bias( - 100 );
74381
+ const textureNode = this.textureNode.bias( -100 );
74378
74382
  const uvNode = textureNode.uvNode || uv();
74379
74383
 
74380
74384
  // FXAA 3.11 implementation by NVIDIA, ported to WebGL by Agost Biro (biro@archilogic.com)
@@ -74435,10 +74439,10 @@ class FXAANode extends TempNode {
74435
74439
  const FxaaPixelShader = Fn( ( [ uv, fxaaQualityRcpFrame, fxaaQualityEdgeThreshold, fxaaQualityinvEdgeThreshold ] ) => {
74436
74440
 
74437
74441
  const rgbaM = FxaaTexTop( uv ).toVar();
74438
- const rgbaS = FxaaTexOff( uv, vec2( 0.0, - 1.0 ), fxaaQualityRcpFrame.xy ).toVar();
74442
+ const rgbaS = FxaaTexOff( uv, vec2( 0.0, -1 ), fxaaQualityRcpFrame.xy ).toVar();
74439
74443
  const rgbaE = FxaaTexOff( uv, vec2( 1.0, 0.0 ), fxaaQualityRcpFrame.xy ).toVar();
74440
74444
  const rgbaN = FxaaTexOff( uv, vec2( 0.0, 1.0 ), fxaaQualityRcpFrame.xy ).toVar();
74441
- const rgbaW = FxaaTexOff( uv, vec2( - 1.0, 0.0 ), fxaaQualityRcpFrame.xy ).toVar();
74445
+ const rgbaW = FxaaTexOff( uv, vec2( -1, 0.0 ), fxaaQualityRcpFrame.xy ).toVar();
74442
74446
  // . S .
74443
74447
  // W M E
74444
74448
  // . N .
@@ -74471,8 +74475,8 @@ class FXAANode extends TempNode {
74471
74475
 
74472
74476
  // locate the edge
74473
74477
 
74474
- const x = contrastE.greaterThan( contrastW ).select( 1, - 1 ).toVar();
74475
- const y = contrastS.greaterThan( contrastN ).select( 1, - 1 ).toVar();
74478
+ const x = contrastE.greaterThan( contrastW ).select( 1, -1 ).toVar();
74479
+ const y = contrastS.greaterThan( contrastN ).select( 1, -1 ).toVar();
74476
74480
 
74477
74481
  const dirToEdge = vec2( x, y ).toVar();
74478
74482
  // . 2 . . 1 .
@@ -74930,7 +74934,7 @@ class BloomNode extends TempNode {
74930
74934
 
74931
74935
  for ( let i = 0; i < kernelRadius; i ++ ) {
74932
74936
 
74933
- coefficients.push( 0.39894 * Math.exp( - 0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
74937
+ coefficients.push( 0.39894 * Math.exp( -0.5 * i * i / ( kernelRadius * kernelRadius ) ) / kernelRadius );
74934
74938
 
74935
74939
  }
74936
74940
 
@@ -75116,9 +75120,9 @@ class PixelationNode extends TempNode {
75116
75120
 
75117
75121
  const diff = property( 'float', 'diff' );
75118
75122
  diff.addAssign( clamp( sampleDepth( 1, 0 ).sub( depth ) ) );
75119
- diff.addAssign( clamp( sampleDepth( - 1, 0 ).sub( depth ) ) );
75123
+ diff.addAssign( clamp( sampleDepth( -1, 0 ).sub( depth ) ) );
75120
75124
  diff.addAssign( clamp( sampleDepth( 0, 1 ).sub( depth ) ) );
75121
- diff.addAssign( clamp( sampleDepth( 0, - 1 ).sub( depth ) ) );
75125
+ diff.addAssign( clamp( sampleDepth( 0, -1 ).sub( depth ) ) );
75122
75126
 
75123
75127
  return floor( smoothstep( 0.01, 0.02, diff ).mul( 2 ) ).div( 2 );
75124
75128
 
@@ -75133,7 +75137,7 @@ class PixelationNode extends TempNode {
75133
75137
 
75134
75138
  const normalEdgeBias = vec3( 1, 1, 1 ); // This should probably be a parameter.
75135
75139
  const normalDiff = dot( normal.sub( neighborNormal ), normalEdgeBias );
75136
- const normalIndicator = clamp( smoothstep( - 0.01, 0.01, normalDiff ), 0.0, 1.0 );
75140
+ const normalIndicator = clamp( smoothstep( -0.01, 0.01, normalDiff ), 0.0, 1.0 );
75137
75141
 
75138
75142
  // Only the shallower pixel should detect the normal edge.
75139
75143
 
@@ -75147,9 +75151,9 @@ class PixelationNode extends TempNode {
75147
75151
 
75148
75152
  const indicator = property( 'float', 'indicator' );
75149
75153
 
75150
- indicator.addAssign( neighborNormalEdgeIndicator( 0, - 1, depth, normal ) );
75154
+ indicator.addAssign( neighborNormalEdgeIndicator( 0, -1, depth, normal ) );
75151
75155
  indicator.addAssign( neighborNormalEdgeIndicator( 0, 1, depth, normal ) );
75152
- indicator.addAssign( neighborNormalEdgeIndicator( - 1, 0, depth, normal ) );
75156
+ indicator.addAssign( neighborNormalEdgeIndicator( -1, 0, depth, normal ) );
75153
75157
  indicator.addAssign( neighborNormalEdgeIndicator( 1, 0, depth, normal ) );
75154
75158
 
75155
75159
  return step( 0.1, indicator );
@@ -75369,7 +75373,7 @@ class SSAAPassNode extends PassNode {
75369
75373
  // The following equation varies the sampleWeight per sample so that it is uniformly distributed
75370
75374
  // across a range of values whose rounding errors cancel each other out.
75371
75375
 
75372
- const uniformCenteredDistribution = ( - 0.5 + ( i + 0.5 ) / jitterOffsets.length );
75376
+ const uniformCenteredDistribution = ( -0.5 + ( i + 0.5 ) / jitterOffsets.length );
75373
75377
  this.sampleWeight.value += roundingRange * uniformCenteredDistribution;
75374
75378
 
75375
75379
  }
@@ -75498,28 +75502,28 @@ const _JitterVectors = [
75498
75502
  [ 0, 0 ]
75499
75503
  ],
75500
75504
  [
75501
- [ 4, 4 ], [ - 4, - 4 ]
75505
+ [ 4, 4 ], [ -4, -4 ]
75502
75506
  ],
75503
75507
  [
75504
- [ - 2, - 6 ], [ 6, - 2 ], [ - 6, 2 ], [ 2, 6 ]
75508
+ [ -2, -6 ], [ 6, -2 ], [ -6, 2 ], [ 2, 6 ]
75505
75509
  ],
75506
75510
  [
75507
- [ 1, - 3 ], [ - 1, 3 ], [ 5, 1 ], [ - 3, - 5 ],
75508
- [ - 5, 5 ], [ - 7, - 1 ], [ 3, 7 ], [ 7, - 7 ]
75511
+ [ 1, -3 ], [ -1, 3 ], [ 5, 1 ], [ -3, -5 ],
75512
+ [ -5, 5 ], [ -7, -1 ], [ 3, 7 ], [ 7, -7 ]
75509
75513
  ],
75510
75514
  [
75511
- [ 1, 1 ], [ - 1, - 3 ], [ - 3, 2 ], [ 4, - 1 ],
75512
- [ - 5, - 2 ], [ 2, 5 ], [ 5, 3 ], [ 3, - 5 ],
75513
- [ - 2, 6 ], [ 0, - 7 ], [ - 4, - 6 ], [ - 6, 4 ],
75514
- [ - 8, 0 ], [ 7, - 4 ], [ 6, 7 ], [ - 7, - 8 ]
75515
+ [ 1, 1 ], [ -1, -3 ], [ -3, 2 ], [ 4, -1 ],
75516
+ [ -5, -2 ], [ 2, 5 ], [ 5, 3 ], [ 3, -5 ],
75517
+ [ -2, 6 ], [ 0, -7 ], [ -4, -6 ], [ -6, 4 ],
75518
+ [ -8, 0 ], [ 7, -4 ], [ 6, 7 ], [ -7, -8 ]
75515
75519
  ],
75516
75520
  [
75517
- [ - 4, - 7 ], [ - 7, - 5 ], [ - 3, - 5 ], [ - 5, - 4 ],
75518
- [ - 1, - 4 ], [ - 2, - 2 ], [ - 6, - 1 ], [ - 4, 0 ],
75519
- [ - 7, 1 ], [ - 1, 2 ], [ - 6, 3 ], [ - 3, 3 ],
75520
- [ - 7, 6 ], [ - 3, 6 ], [ - 5, 7 ], [ - 1, 7 ],
75521
- [ 5, - 7 ], [ 1, - 6 ], [ 6, - 5 ], [ 4, - 4 ],
75522
- [ 2, - 3 ], [ 7, - 2 ], [ 1, - 1 ], [ 4, - 1 ],
75521
+ [ -4, -7 ], [ -7, -5 ], [ -3, -5 ], [ -5, -4 ],
75522
+ [ -1, -4 ], [ -2, -2 ], [ -6, -1 ], [ -4, 0 ],
75523
+ [ -7, 1 ], [ -1, 2 ], [ -6, 3 ], [ -3, 3 ],
75524
+ [ -7, 6 ], [ -3, 6 ], [ -5, 7 ], [ -1, 7 ],
75525
+ [ 5, -7 ], [ 1, -6 ], [ 6, -5 ], [ 4, -4 ],
75526
+ [ 2, -3 ], [ 7, -2 ], [ 1, -1 ], [ 4, -1 ],
75523
75527
  [ 2, 1 ], [ 6, 2 ], [ 0, 4 ], [ 4, 4 ],
75524
75528
  [ 2, 5 ], [ 7, 5 ], [ 5, 6 ], [ 3, 7 ]
75525
75529
  ]
@@ -75721,15 +75725,15 @@ class AnaglyphPassNode extends StereoCompositePassNode {
75721
75725
  // Dubois matrices from https://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.7.6968&rep=rep1&type=pdf#page=4
75722
75726
 
75723
75727
  this._colorMatrixLeft = uniform( new Matrix3().fromArray( [
75724
- 0.456100, - 0.0400822, - 0.0152161,
75725
- 0.500484, - 0.0378246, - 0.0205971,
75726
- 0.176381, - 0.0157589, - 0.00546856
75728
+ 0.456100, -0.0400822, -0.0152161,
75729
+ 0.500484, -0.0378246, -0.0205971,
75730
+ 0.176381, -0.0157589, -546856e-8
75727
75731
  ] ) );
75728
75732
 
75729
75733
  this._colorMatrixRight = uniform( new Matrix3().fromArray( [
75730
- - 0.0434706, 0.378476, - 0.0721527,
75731
- - 0.0879388, 0.73364, - 0.112961,
75732
- - 0.00155529, - 0.0184503, 1.2264
75734
+ -0.0434706, 0.378476, -0.0721527,
75735
+ -0.0879388, 0.73364, -0.112961,
75736
+ -155529e-8, -0.0184503, 1.2264
75733
75737
  ] ) );
75734
75738
 
75735
75739
  }
@@ -76921,7 +76925,7 @@ const VSMPassVertical = Fn( ( { samples, radius, size, shadowPass } ) => {
76921
76925
  const squaredMean = float( 0 ).toVar();
76922
76926
 
76923
76927
  const uvStride = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( 2 ).div( samples.sub( 1 ) ) );
76924
- const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( - 1 ) );
76928
+ const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( -1 ) );
76925
76929
 
76926
76930
  Loop( { start: int( 0 ), end: int( samples ), type: 'int', condition: '<' }, ( { i } ) => {
76927
76931
 
@@ -76947,7 +76951,7 @@ const VSMPassHorizontal = Fn( ( { samples, radius, size, shadowPass } ) => {
76947
76951
  const squaredMean = float( 0 ).toVar();
76948
76952
 
76949
76953
  const uvStride = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( 2 ).div( samples.sub( 1 ) ) );
76950
- const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( - 1 ) );
76954
+ const uvStart = samples.lessThanEqual( float( 1 ) ).select( float( 0 ), float( -1 ) );
76951
76955
 
76952
76956
  Loop( { start: int( 0 ), end: int( samples ), type: 'int', condition: '<' }, ( { i } ) => {
76953
76957
 
@@ -77850,9 +77854,9 @@ const acesFilmicToneMapping = /*@__PURE__*/ Fn( ( [ color, exposure ] ) => {
77850
77854
 
77851
77855
  // ODT_SAT => XYZ => D60_2_D65 => sRGB
77852
77856
  const ACESOutputMat = mat3(
77853
- 1.60475, - 0.53108, - 0.07367,
77854
- - 0.10208, 1.10813, - 0.00605,
77855
- - 0.00327, - 0.07276, 1.07602
77857
+ 1.60475, -0.53108, -0.07367,
77858
+ -0.10208, 1.10813, -605e-5,
77859
+ -327e-5, -0.07276, 1.07602
77856
77860
  );
77857
77861
 
77858
77862
  color = color.mul( exposure ).div( 0.6 );
@@ -77876,7 +77880,7 @@ const acesFilmicToneMapping = /*@__PURE__*/ Fn( ( [ color, exposure ] ) => {
77876
77880
  ]
77877
77881
  } );
77878
77882
 
77879
- 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 ) );
77883
+ 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 ) );
77880
77884
  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 ) );
77881
77885
 
77882
77886
  const agxDefaultContrastApprox = /*@__PURE__*/ Fn( ( [ x_immutable ] ) => {
@@ -77893,8 +77897,8 @@ const agxToneMapping = /*@__PURE__*/ Fn( ( [ color, exposure ] ) => {
77893
77897
 
77894
77898
  const colortone = vec3( color ).toVar();
77895
77899
  const AgXInsetMatrix = mat3( vec3( 0.856627153315983, 0.137318972929847, 0.11189821299995 ), vec3( 0.0951212405381588, 0.761241990602591, 0.0767994186031903 ), vec3( 0.0482516061458583, 0.101439036467562, 0.811302368396859 ) );
77896
- const AgXOutsetMatrix = mat3( vec3( 1.1271005818144368, - 0.1413297634984383, - 0.14132976349843826 ), vec3( - 0.11060664309660323, 1.157823702216272, - 0.11060664309660294 ), vec3( - 0.016493938717834573, - 0.016493938717834257, 1.2519364065950405 ) );
77897
- const AgxMinEv = float( - 12.47393 );
77900
+ const AgXOutsetMatrix = mat3( vec3( 1.1271005818144368, -0.1413297634984383, -0.14132976349843826 ), vec3( -0.11060664309660323, 1.157823702216272, -0.11060664309660294 ), vec3( -0.016493938717834573, -0.016493938717834257, 1.2519364065950405 ) );
77901
+ const AgxMinEv = float( -12.47393 );
77898
77902
  const AgxMaxEv = float( 4.026069 );
77899
77903
  colortone.mulAssign( exposure );
77900
77904
  colortone.assign( LINEAR_SRGB_TO_LINEAR_REC2020.mul( colortone ) );
@@ -79319,9 +79323,9 @@ const mx_worley_noise_float_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immuta
79319
79323
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
79320
79324
  const sqdist = float( 1e6 ).toVar();
79321
79325
 
79322
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79326
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79323
79327
 
79324
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79328
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79325
79329
 
79326
79330
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
79327
79331
  sqdist.assign( min$1( sqdist, dist ) );
@@ -79357,9 +79361,9 @@ const mx_worley_noise_vec2_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
79357
79361
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
79358
79362
  const sqdist = vec2( 1e6, 1e6 ).toVar();
79359
79363
 
79360
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79364
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79361
79365
 
79362
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79366
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79363
79367
 
79364
79368
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
79365
79369
 
@@ -79405,9 +79409,9 @@ const mx_worley_noise_vec3_0 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
79405
79409
  const localpos = vec2( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ) ).toVar();
79406
79410
  const sqdist = vec3( 1e6, 1e6, 1e6 ).toVar();
79407
79411
 
79408
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79412
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79409
79413
 
79410
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79414
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79411
79415
 
79412
79416
  const dist = float( mx_worley_distance( localpos, x, y, X, Y, jitter, metric ) ).toVar();
79413
79417
 
@@ -79459,11 +79463,11 @@ const mx_worley_noise_float_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immuta
79459
79463
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
79460
79464
  const sqdist = float( 1e6 ).toVar();
79461
79465
 
79462
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79466
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79463
79467
 
79464
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79468
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79465
79469
 
79466
- Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
79470
+ Loop( { start: -1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
79467
79471
 
79468
79472
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
79469
79473
  sqdist.assign( min$1( sqdist, dist ) );
@@ -79503,11 +79507,11 @@ const mx_worley_noise_vec2_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
79503
79507
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
79504
79508
  const sqdist = vec2( 1e6, 1e6 ).toVar();
79505
79509
 
79506
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79510
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79507
79511
 
79508
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79512
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79509
79513
 
79510
- Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
79514
+ Loop( { start: -1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
79511
79515
 
79512
79516
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
79513
79517
 
@@ -79557,11 +79561,11 @@ const mx_worley_noise_vec3_1 = /*@__PURE__*/ Fn( ( [ p_immutable, jitter_immutab
79557
79561
  const localpos = vec3( mx_floorfrac( p.x, X ), mx_floorfrac( p.y, Y ), mx_floorfrac( p.z, Z ) ).toVar();
79558
79562
  const sqdist = vec3( 1e6, 1e6, 1e6 ).toVar();
79559
79563
 
79560
- Loop( { start: - 1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79564
+ Loop( { start: -1, end: int( 1 ), name: 'x', condition: '<=' }, ( { x } ) => {
79561
79565
 
79562
- Loop( { start: - 1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79566
+ Loop( { start: -1, end: int( 1 ), name: 'y', condition: '<=' }, ( { y } ) => {
79563
79567
 
79564
- Loop( { start: - 1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
79568
+ Loop( { start: -1, end: int( 1 ), name: 'z', condition: '<=' }, ( { z } ) => {
79565
79569
 
79566
79570
  const dist = float( mx_worley_distance( localpos, x, y, z, X, Y, Z, jitter, metric ) ).toVar();
79567
79571
 
@@ -80280,7 +80284,7 @@ const parse = ( source ) => {
80280
80284
 
80281
80285
  const pragmaMainIndex = source.indexOf( pragmaMain );
80282
80286
 
80283
- const mainCode = pragmaMainIndex !== - 1 ? source.slice( pragmaMainIndex + pragmaMain.length ) : source;
80287
+ const mainCode = pragmaMainIndex !== -1 ? source.slice( pragmaMainIndex + pragmaMain.length ) : source;
80284
80288
 
80285
80289
  const declaration = mainCode.match( declarationRegexp );
80286
80290
 
@@ -80349,7 +80353,7 @@ const parse = ( source ) => {
80349
80353
 
80350
80354
  const precision = declaration[ 1 ] !== undefined ? declaration[ 1 ] : '';
80351
80355
 
80352
- const headerCode = pragmaMainIndex !== - 1 ? source.slice( 0, pragmaMainIndex ) : '';
80356
+ const headerCode = pragmaMainIndex !== -1 ? source.slice( 0, pragmaMainIndex ) : '';
80353
80357
 
80354
80358
  return {
80355
80359
  type,