super-three 0.173.4 → 0.173.5

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.
@@ -748,7 +748,7 @@ const UniformsLib = {
748
748
 
749
749
  envMap: { value: null },
750
750
  envMapRotation: { value: /*@__PURE__*/ new Matrix3() },
751
- flipEnvMap: { value: - 1 },
751
+ flipEnvMap: { value: -1 },
752
752
  reflectivity: { value: 1.0 }, // basic, lambert, phong
753
753
  ior: { value: 1.5 }, // physical
754
754
  refractionRatio: { value: 0.98 }, // basic, lambert, phong
@@ -1169,7 +1169,7 @@ const ShaderLib = {
1169
1169
 
1170
1170
  uniforms: {
1171
1171
  envMap: { value: null },
1172
- flipEnvMap: { value: - 1 },
1172
+ flipEnvMap: { value: -1 },
1173
1173
  backgroundBlurriness: { value: 0 },
1174
1174
  backgroundIntensity: { value: 1 },
1175
1175
  backgroundRotation: { value: /*@__PURE__*/ new Matrix3() }
@@ -1184,7 +1184,7 @@ const ShaderLib = {
1184
1184
 
1185
1185
  uniforms: {
1186
1186
  tCube: { value: null },
1187
- tFlip: { value: - 1 },
1187
+ tFlip: { value: -1 },
1188
1188
  opacity: { value: 1.0 }
1189
1189
  },
1190
1190
 
@@ -1418,18 +1418,18 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
1418
1418
  _e1$1.copy( scene.backgroundRotation );
1419
1419
 
1420
1420
  // accommodate left-handed frame
1421
- _e1$1.x *= - 1; _e1$1.y *= - 1; _e1$1.z *= - 1;
1421
+ _e1$1.x *= -1; _e1$1.y *= -1; _e1$1.z *= -1;
1422
1422
 
1423
1423
  if ( background.isCubeTexture && background.isRenderTargetTexture === false ) {
1424
1424
 
1425
1425
  // environment maps which are not cube render targets or PMREMs follow a different convention
1426
- _e1$1.y *= - 1;
1427
- _e1$1.z *= - 1;
1426
+ _e1$1.y *= -1;
1427
+ _e1$1.z *= -1;
1428
1428
 
1429
1429
  }
1430
1430
 
1431
1431
  boxMesh.material.uniforms.envMap.value = background;
1432
- boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? - 1 : 1;
1432
+ boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? -1 : 1;
1433
1433
  boxMesh.material.uniforms.backgroundBlurriness.value = scene.backgroundBlurriness;
1434
1434
  boxMesh.material.uniforms.backgroundIntensity.value = scene.backgroundIntensity;
1435
1435
  boxMesh.material.uniforms.backgroundRotation.value.setFromMatrix4( _m1$1.makeRotationFromEuler( _e1$1 ) );
@@ -2693,9 +2693,9 @@ const _axisDirections = [
2693
2693
  /*@__PURE__*/ new Vector3( INV_PHI, 0, PHI ),
2694
2694
  /*@__PURE__*/ new Vector3( 0, PHI, - INV_PHI ),
2695
2695
  /*@__PURE__*/ new Vector3( 0, PHI, INV_PHI ),
2696
- /*@__PURE__*/ new Vector3( - 1, 1, - 1 ),
2697
- /*@__PURE__*/ new Vector3( 1, 1, - 1 ),
2698
- /*@__PURE__*/ new Vector3( - 1, 1, 1 ),
2696
+ /*@__PURE__*/ new Vector3( -1, 1, -1 ),
2697
+ /*@__PURE__*/ new Vector3( 1, 1, -1 ),
2698
+ /*@__PURE__*/ new Vector3( -1, 1, 1 ),
2699
2699
  /*@__PURE__*/ new Vector3( 1, 1, 1 ) ];
2700
2700
 
2701
2701
  /**
@@ -2963,8 +2963,8 @@ class PMREMGenerator {
2963
2963
  const fov = 90;
2964
2964
  const aspect = 1;
2965
2965
  const cubeCamera = new PerspectiveCamera( fov, aspect, near, far );
2966
- const upSign = [ 1, - 1, 1, 1, 1, 1 ];
2967
- const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ];
2966
+ const upSign = [ 1, -1, 1, 1, 1, 1 ];
2967
+ const forwardSign = [ 1, 1, 1, -1, -1, -1 ];
2968
2968
  const renderer = this._renderer;
2969
2969
 
2970
2970
  const originalAutoClear = renderer.autoClear;
@@ -3063,7 +3063,7 @@ class PMREMGenerator {
3063
3063
 
3064
3064
  }
3065
3065
 
3066
- this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? - 1 : 1;
3066
+ this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? -1 : 1;
3067
3067
 
3068
3068
  } else {
3069
3069
 
@@ -3282,7 +3282,7 @@ function _createPlanes( lodMax ) {
3282
3282
  for ( let face = 0; face < cubeFaces; face ++ ) {
3283
3283
 
3284
3284
  const x = ( face % 3 ) * 2 / 3 - 1;
3285
- const y = face > 2 ? 0 : - 1;
3285
+ const y = face > 2 ? 0 : -1;
3286
3286
  const coordinates = [
3287
3287
  x, y, 0,
3288
3288
  x + 2 / 3, y, 0,
@@ -3481,7 +3481,7 @@ function _getCubemapMaterial() {
3481
3481
 
3482
3482
  uniforms: {
3483
3483
  'envMap': { value: null },
3484
- 'flipEnvMap': { value: - 1 }
3484
+ 'flipEnvMap': { value: -1 }
3485
3485
  },
3486
3486
 
3487
3487
  vertexShader: _getCommonVertexShader(),
@@ -8003,18 +8003,18 @@ function WebGLLights( extensions ) {
8003
8003
  version: 0,
8004
8004
 
8005
8005
  hash: {
8006
- directionalLength: - 1,
8007
- pointLength: - 1,
8008
- spotLength: - 1,
8009
- rectAreaLength: - 1,
8010
- hemiLength: - 1,
8011
-
8012
- numDirectionalShadows: - 1,
8013
- numPointShadows: - 1,
8014
- numSpotShadows: - 1,
8015
- numSpotMaps: - 1,
8016
-
8017
- numLightProbes: - 1
8006
+ directionalLength: -1,
8007
+ pointLength: -1,
8008
+ spotLength: -1,
8009
+ rectAreaLength: -1,
8010
+ hemiLength: -1,
8011
+
8012
+ numDirectionalShadows: -1,
8013
+ numPointShadows: -1,
8014
+ numSpotShadows: -1,
8015
+ numSpotMaps: -1,
8016
+
8017
+ numLightProbes: -1
8018
8018
  },
8019
8019
 
8020
8020
  ambient: [ 0, 0, 0 ],
@@ -8555,7 +8555,7 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
8555
8555
  fullScreenTri.setAttribute(
8556
8556
  'position',
8557
8557
  new BufferAttribute(
8558
- new Float32Array( [ - 1, - 1, 0.5, 3, - 1, 0.5, - 1, 3, 0.5 ] ),
8558
+ new Float32Array( [ -1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5 ] ),
8559
8559
  3
8560
8560
  )
8561
8561
  );
@@ -8988,7 +8988,7 @@ function WebGLState( gl, extensions ) {
8988
8988
  locked = false;
8989
8989
 
8990
8990
  currentColorMask = null;
8991
- currentColorClear.set( - 1, 0, 0, 0 ); // set to invalid state
8991
+ currentColorClear.set( -1, 0, 0, 0 ); // set to invalid state
8992
8992
 
8993
8993
  }
8994
8994
 
@@ -9317,12 +9317,12 @@ function WebGLState( gl, extensions ) {
9317
9317
  let version = 0;
9318
9318
  const glVersion = gl.getParameter( gl.VERSION );
9319
9319
 
9320
- if ( glVersion.indexOf( 'WebGL' ) !== - 1 ) {
9320
+ if ( glVersion.indexOf( 'WebGL' ) !== -1 ) {
9321
9321
 
9322
9322
  version = parseFloat( /^WebGL (\d)/.exec( glVersion )[ 1 ] );
9323
9323
  lineWidthAvailable = ( version >= 1.0 );
9324
9324
 
9325
- } else if ( glVersion.indexOf( 'OpenGL ES' ) !== - 1 ) {
9325
+ } else if ( glVersion.indexOf( 'OpenGL ES' ) !== -1 ) {
9326
9326
 
9327
9327
  version = parseFloat( /^OpenGL ES (\d)/.exec( glVersion )[ 1 ] );
9328
9328
  lineWidthAvailable = ( version >= 2.0 );
@@ -13068,7 +13068,7 @@ class WebXRManager extends EventDispatcher {
13068
13068
 
13069
13069
  const controllerIndex = controllerInputSources.indexOf( event.inputSource );
13070
13070
 
13071
- if ( controllerIndex === - 1 ) {
13071
+ if ( controllerIndex === -1 ) {
13072
13072
 
13073
13073
  return;
13074
13074
 
@@ -13115,6 +13115,8 @@ class WebXRManager extends EventDispatcher {
13115
13115
 
13116
13116
  // restore framebuffer/rendering state
13117
13117
 
13118
+ scope.isPresenting = false;
13119
+
13118
13120
  renderer.setRenderTarget( initialRenderTarget );
13119
13121
 
13120
13122
  glBaseLayer = null;
@@ -13127,8 +13129,6 @@ class WebXRManager extends EventDispatcher {
13127
13129
 
13128
13130
  animation.stop();
13129
13131
 
13130
- scope.isPresenting = false;
13131
-
13132
13132
  renderer.setPixelRatio( currentPixelRatio );
13133
13133
  renderer.setSize( currentSize.width, currentSize.height, false );
13134
13134
 
@@ -13407,7 +13407,7 @@ class WebXRManager extends EventDispatcher {
13407
13407
 
13408
13408
  let controllerIndex = controllerInputSources.indexOf( inputSource );
13409
13409
 
13410
- if ( controllerIndex === - 1 ) {
13410
+ if ( controllerIndex === -1 ) {
13411
13411
 
13412
13412
  // Assign input source a controller that currently has no input source
13413
13413
 
@@ -13431,7 +13431,7 @@ class WebXRManager extends EventDispatcher {
13431
13431
 
13432
13432
  // If all controllers do currently receive input we ignore new ones
13433
13433
 
13434
- if ( controllerIndex === - 1 ) break;
13434
+ if ( controllerIndex === -1 ) break;
13435
13435
 
13436
13436
  }
13437
13437
 
@@ -13498,7 +13498,7 @@ class WebXRManager extends EventDispatcher {
13498
13498
  camera.matrixWorldInverse.copy( camera.matrixWorld ).invert();
13499
13499
 
13500
13500
  // Check if the projection uses an infinite far plane.
13501
- if ( projL[ 10 ] === - 1.0 ) {
13501
+ if ( projL[ 10 ] === -1 ) {
13502
13502
 
13503
13503
  // Use the projection matrix from the left eye.
13504
13504
  // The camera offset is sufficient to include the view volumes
@@ -14006,7 +14006,7 @@ function WebGLMaterials( renderer, properties ) {
14006
14006
 
14007
14007
  if ( material.side === BackSide ) {
14008
14008
 
14009
- uniforms.bumpScale.value *= - 1;
14009
+ uniforms.bumpScale.value *= -1;
14010
14010
 
14011
14011
  }
14012
14012
 
@@ -14073,19 +14073,19 @@ function WebGLMaterials( renderer, properties ) {
14073
14073
  _e1.copy( envMapRotation );
14074
14074
 
14075
14075
  // accommodate left-handed frame
14076
- _e1.x *= - 1; _e1.y *= - 1; _e1.z *= - 1;
14076
+ _e1.x *= -1; _e1.y *= -1; _e1.z *= -1;
14077
14077
 
14078
14078
  if ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) {
14079
14079
 
14080
14080
  // environment maps which are not cube render targets or PMREMs follow a different convention
14081
- _e1.y *= - 1;
14082
- _e1.z *= - 1;
14081
+ _e1.y *= -1;
14082
+ _e1.z *= -1;
14083
14083
 
14084
14084
  }
14085
14085
 
14086
14086
  uniforms.envMapRotation.value.setFromMatrix4( _m1.makeRotationFromEuler( _e1 ) );
14087
14087
 
14088
- uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
14088
+ uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
14089
14089
 
14090
14090
  uniforms.reflectivity.value = material.reflectivity;
14091
14091
  uniforms.ior.value = material.ior;
@@ -14508,7 +14508,7 @@ function WebGLUniformsGroups( gl, info, capabilities, state ) {
14508
14508
 
14509
14509
  for ( let i = 0; i < maxBindingPoints; i ++ ) {
14510
14510
 
14511
- if ( allocatedBindingPoints.indexOf( i ) === - 1 ) {
14511
+ if ( allocatedBindingPoints.indexOf( i ) === -1 ) {
14512
14512
 
14513
14513
  allocatedBindingPoints.push( i );
14514
14514
  return i;
@@ -14931,7 +14931,7 @@ class WebGLRenderer {
14931
14931
  let _currentActiveCubeFace = 0;
14932
14932
  let _currentActiveMipmapLevel = 0;
14933
14933
  let _currentRenderTarget = null;
14934
- let _currentMaterialId = - 1;
14934
+ let _currentMaterialId = -1;
14935
14935
 
14936
14936
  let _currentCamera = null;
14937
14937
 
@@ -16074,7 +16074,7 @@ class WebGLRenderer {
16074
16074
  // _gl.finish();
16075
16075
 
16076
16076
  bindingStates.resetDefaultState();
16077
- _currentMaterialId = - 1;
16077
+ _currentMaterialId = -1;
16078
16078
  _currentCamera = null;
16079
16079
 
16080
16080
  renderStateStack.pop();
@@ -16906,7 +16906,7 @@ class WebGLRenderer {
16906
16906
 
16907
16907
  m_uniforms.envMap.value = envMap;
16908
16908
 
16909
- m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
16909
+ m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
16910
16910
 
16911
16911
  }
16912
16912
 
@@ -17257,7 +17257,7 @@ class WebGLRenderer {
17257
17257
 
17258
17258
  }
17259
17259
 
17260
- _currentMaterialId = - 1; // reset current material to ensure correct uniform bindings
17260
+ _currentMaterialId = -1; // reset current material to ensure correct uniform bindings
17261
17261
 
17262
17262
  };
17263
17263