|
|
@@ -748,7 +748,7 @@ const UniformsLib = {
|
|
|
|
|
|
envMap: { value: null },
|
|
|
envMapRotation: { value: /*@__PURE__*/ new Matrix3() },
|
|
|
- flipEnvMap: { value: - 1 },
|
|
|
+ flipEnvMap: { value: -1 },
|
|
|
reflectivity: { value: 1.0 }, // basic, lambert, phong
|
|
|
ior: { value: 1.5 }, // physical
|
|
|
refractionRatio: { value: 0.98 }, // basic, lambert, phong
|
|
|
@@ -1169,7 +1169,7 @@ const ShaderLib = {
|
|
|
|
|
|
uniforms: {
|
|
|
envMap: { value: null },
|
|
|
- flipEnvMap: { value: - 1 },
|
|
|
+ flipEnvMap: { value: -1 },
|
|
|
backgroundBlurriness: { value: 0 },
|
|
|
backgroundIntensity: { value: 1 },
|
|
|
backgroundRotation: { value: /*@__PURE__*/ new Matrix3() }
|
|
|
@@ -1184,7 +1184,7 @@ const ShaderLib = {
|
|
|
|
|
|
uniforms: {
|
|
|
tCube: { value: null },
|
|
|
- tFlip: { value: - 1 },
|
|
|
+ tFlip: { value: -1 },
|
|
|
opacity: { value: 1.0 }
|
|
|
},
|
|
|
|
|
|
@@ -1418,18 +1418,18 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
|
|
|
_e1$1.copy( scene.backgroundRotation );
|
|
|
|
|
|
// accommodate left-handed frame
|
|
|
- _e1$1.x *= - 1; _e1$1.y *= - 1; _e1$1.z *= - 1;
|
|
|
+ _e1$1.x *= -1; _e1$1.y *= -1; _e1$1.z *= -1;
|
|
|
|
|
|
if ( background.isCubeTexture && background.isRenderTargetTexture === false ) {
|
|
|
|
|
|
// environment maps which are not cube render targets or PMREMs follow a different convention
|
|
|
- _e1$1.y *= - 1;
|
|
|
- _e1$1.z *= - 1;
|
|
|
+ _e1$1.y *= -1;
|
|
|
+ _e1$1.z *= -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
boxMesh.material.uniforms.envMap.value = background;
|
|
|
- boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? - 1 : 1;
|
|
|
+ boxMesh.material.uniforms.flipEnvMap.value = ( background.isCubeTexture && background.isRenderTargetTexture === false ) ? -1 : 1;
|
|
|
boxMesh.material.uniforms.backgroundBlurriness.value = scene.backgroundBlurriness;
|
|
|
boxMesh.material.uniforms.backgroundIntensity.value = scene.backgroundIntensity;
|
|
|
boxMesh.material.uniforms.backgroundRotation.value.setFromMatrix4( _m1$1.makeRotationFromEuler( _e1$1 ) );
|
|
|
@@ -2693,9 +2693,9 @@ const _axisDirections = [
|
|
|
/*@__PURE__*/ new Vector3( INV_PHI, 0, PHI ),
|
|
|
/*@__PURE__*/ new Vector3( 0, PHI, - INV_PHI ),
|
|
|
/*@__PURE__*/ new Vector3( 0, PHI, INV_PHI ),
|
|
|
- /*@__PURE__*/ new Vector3( - 1, 1, - 1 ),
|
|
|
- /*@__PURE__*/ new Vector3( 1, 1, - 1 ),
|
|
|
- /*@__PURE__*/ new Vector3( - 1, 1, 1 ),
|
|
|
+ /*@__PURE__*/ new Vector3( -1, 1, -1 ),
|
|
|
+ /*@__PURE__*/ new Vector3( 1, 1, -1 ),
|
|
|
+ /*@__PURE__*/ new Vector3( -1, 1, 1 ),
|
|
|
/*@__PURE__*/ new Vector3( 1, 1, 1 ) ];
|
|
|
|
|
|
/**
|
|
|
@@ -2963,8 +2963,8 @@ class PMREMGenerator {
|
|
|
const fov = 90;
|
|
|
const aspect = 1;
|
|
|
const cubeCamera = new PerspectiveCamera( fov, aspect, near, far );
|
|
|
- const upSign = [ 1, - 1, 1, 1, 1, 1 ];
|
|
|
- const forwardSign = [ 1, 1, 1, - 1, - 1, - 1 ];
|
|
|
+ const upSign = [ 1, -1, 1, 1, 1, 1 ];
|
|
|
+ const forwardSign = [ 1, 1, 1, -1, -1, -1 ];
|
|
|
const renderer = this._renderer;
|
|
|
|
|
|
const originalAutoClear = renderer.autoClear;
|
|
|
@@ -3063,7 +3063,7 @@ class PMREMGenerator {
|
|
|
|
|
|
}
|
|
|
|
|
|
- this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? - 1 : 1;
|
|
|
+ this._cubemapMaterial.uniforms.flipEnvMap.value = ( texture.isRenderTargetTexture === false ) ? -1 : 1;
|
|
|
|
|
|
} else {
|
|
|
|
|
|
@@ -3282,7 +3282,7 @@ function _createPlanes( lodMax ) {
|
|
|
for ( let face = 0; face < cubeFaces; face ++ ) {
|
|
|
|
|
|
const x = ( face % 3 ) * 2 / 3 - 1;
|
|
|
- const y = face > 2 ? 0 : - 1;
|
|
|
+ const y = face > 2 ? 0 : -1;
|
|
|
const coordinates = [
|
|
|
x, y, 0,
|
|
|
x + 2 / 3, y, 0,
|
|
|
@@ -3481,7 +3481,7 @@ function _getCubemapMaterial() {
|
|
|
|
|
|
uniforms: {
|
|
|
'envMap': { value: null },
|
|
|
- 'flipEnvMap': { value: - 1 }
|
|
|
+ 'flipEnvMap': { value: -1 }
|
|
|
},
|
|
|
|
|
|
vertexShader: _getCommonVertexShader(),
|
|
|
@@ -7851,18 +7851,18 @@ function WebGLLights( extensions ) {
|
|
|
version: 0,
|
|
|
|
|
|
hash: {
|
|
|
- directionalLength: - 1,
|
|
|
- pointLength: - 1,
|
|
|
- spotLength: - 1,
|
|
|
- rectAreaLength: - 1,
|
|
|
- hemiLength: - 1,
|
|
|
-
|
|
|
- numDirectionalShadows: - 1,
|
|
|
- numPointShadows: - 1,
|
|
|
- numSpotShadows: - 1,
|
|
|
- numSpotMaps: - 1,
|
|
|
-
|
|
|
- numLightProbes: - 1
|
|
|
+ directionalLength: -1,
|
|
|
+ pointLength: -1,
|
|
|
+ spotLength: -1,
|
|
|
+ rectAreaLength: -1,
|
|
|
+ hemiLength: -1,
|
|
|
+
|
|
|
+ numDirectionalShadows: -1,
|
|
|
+ numPointShadows: -1,
|
|
|
+ numSpotShadows: -1,
|
|
|
+ numSpotMaps: -1,
|
|
|
+
|
|
|
+ numLightProbes: -1
|
|
|
},
|
|
|
|
|
|
ambient: [ 0, 0, 0 ],
|
|
|
@@ -8403,7 +8403,7 @@ function WebGLShadowMap( renderer, objects, capabilities ) {
|
|
|
fullScreenTri.setAttribute(
|
|
|
'position',
|
|
|
new BufferAttribute(
|
|
|
- new Float32Array( [ - 1, - 1, 0.5, 3, - 1, 0.5, - 1, 3, 0.5 ] ),
|
|
|
+ new Float32Array( [ -1, -1, 0.5, 3, -1, 0.5, -1, 3, 0.5 ] ),
|
|
|
3
|
|
|
)
|
|
|
);
|
|
|
@@ -8836,7 +8836,7 @@ function WebGLState( gl, extensions ) {
|
|
|
locked = false;
|
|
|
|
|
|
currentColorMask = null;
|
|
|
- currentColorClear.set( - 1, 0, 0, 0 ); // set to invalid state
|
|
|
+ currentColorClear.set( -1, 0, 0, 0 ); // set to invalid state
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -9165,12 +9165,12 @@ function WebGLState( gl, extensions ) {
|
|
|
let version = 0;
|
|
|
const glVersion = gl.getParameter( gl.VERSION );
|
|
|
|
|
|
- if ( glVersion.indexOf( 'WebGL' ) !== - 1 ) {
|
|
|
+ if ( glVersion.indexOf( 'WebGL' ) !== -1 ) {
|
|
|
|
|
|
version = parseFloat( /^WebGL (\d)/.exec( glVersion )[ 1 ] );
|
|
|
lineWidthAvailable = ( version >= 1.0 );
|
|
|
|
|
|
- } else if ( glVersion.indexOf( 'OpenGL ES' ) !== - 1 ) {
|
|
|
+ } else if ( glVersion.indexOf( 'OpenGL ES' ) !== -1 ) {
|
|
|
|
|
|
version = parseFloat( /^OpenGL ES (\d)/.exec( glVersion )[ 1 ] );
|
|
|
lineWidthAvailable = ( version >= 2.0 );
|
|
|
@@ -12697,7 +12697,7 @@ class WebXRManager extends EventDispatcher {
|
|
|
|
|
|
const controllerIndex = controllerInputSources.indexOf( event.inputSource );
|
|
|
|
|
|
- if ( controllerIndex === - 1 ) {
|
|
|
+ if ( controllerIndex === -1 ) {
|
|
|
|
|
|
return;
|
|
|
|
|
|
@@ -12987,7 +12987,7 @@ class WebXRManager extends EventDispatcher {
|
|
|
|
|
|
let controllerIndex = controllerInputSources.indexOf( inputSource );
|
|
|
|
|
|
- if ( controllerIndex === - 1 ) {
|
|
|
+ if ( controllerIndex === -1 ) {
|
|
|
|
|
|
// Assign input source a controller that currently has no input source
|
|
|
|
|
|
@@ -13011,7 +13011,7 @@ class WebXRManager extends EventDispatcher {
|
|
|
|
|
|
// If all controllers do currently receive input we ignore new ones
|
|
|
|
|
|
- if ( controllerIndex === - 1 ) break;
|
|
|
+ if ( controllerIndex === -1 ) break;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -13078,7 +13078,7 @@ class WebXRManager extends EventDispatcher {
|
|
|
camera.matrixWorldInverse.copy( camera.matrixWorld ).invert();
|
|
|
|
|
|
// Check if the projection uses an infinite far plane.
|
|
|
- if ( projL[ 10 ] === - 1.0 ) {
|
|
|
+ if ( projL[ 10 ] === -1 ) {
|
|
|
|
|
|
// Use the projection matrix from the left eye.
|
|
|
// The camera offset is sufficient to include the view volumes
|
|
|
@@ -13579,7 +13579,7 @@ function WebGLMaterials( renderer, properties ) {
|
|
|
|
|
|
if ( material.side === BackSide ) {
|
|
|
|
|
|
- uniforms.bumpScale.value *= - 1;
|
|
|
+ uniforms.bumpScale.value *= -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -13646,19 +13646,19 @@ function WebGLMaterials( renderer, properties ) {
|
|
|
_e1.copy( envMapRotation );
|
|
|
|
|
|
// accommodate left-handed frame
|
|
|
- _e1.x *= - 1; _e1.y *= - 1; _e1.z *= - 1;
|
|
|
+ _e1.x *= -1; _e1.y *= -1; _e1.z *= -1;
|
|
|
|
|
|
if ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) {
|
|
|
|
|
|
// environment maps which are not cube render targets or PMREMs follow a different convention
|
|
|
- _e1.y *= - 1;
|
|
|
- _e1.z *= - 1;
|
|
|
+ _e1.y *= -1;
|
|
|
+ _e1.z *= -1;
|
|
|
|
|
|
}
|
|
|
|
|
|
uniforms.envMapRotation.value.setFromMatrix4( _m1.makeRotationFromEuler( _e1 ) );
|
|
|
|
|
|
- uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
|
|
|
+ uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
|
|
|
|
|
|
uniforms.reflectivity.value = material.reflectivity;
|
|
|
uniforms.ior.value = material.ior;
|
|
|
@@ -14081,7 +14081,7 @@ function WebGLUniformsGroups( gl, info, capabilities, state ) {
|
|
|
|
|
|
for ( let i = 0; i < maxBindingPoints; i ++ ) {
|
|
|
|
|
|
- if ( allocatedBindingPoints.indexOf( i ) === - 1 ) {
|
|
|
+ if ( allocatedBindingPoints.indexOf( i ) === -1 ) {
|
|
|
|
|
|
allocatedBindingPoints.push( i );
|
|
|
return i;
|
|
|
@@ -14503,7 +14503,7 @@ class WebGLRenderer {
|
|
|
let _currentActiveCubeFace = 0;
|
|
|
let _currentActiveMipmapLevel = 0;
|
|
|
let _currentRenderTarget = null;
|
|
|
- let _currentMaterialId = - 1;
|
|
|
+ let _currentMaterialId = -1;
|
|
|
|
|
|
let _currentCamera = null;
|
|
|
|
|
|
@@ -15634,7 +15634,7 @@ class WebGLRenderer {
|
|
|
// _gl.finish();
|
|
|
|
|
|
bindingStates.resetDefaultState();
|
|
|
- _currentMaterialId = - 1;
|
|
|
+ _currentMaterialId = -1;
|
|
|
_currentCamera = null;
|
|
|
|
|
|
renderStateStack.pop();
|
|
|
@@ -16450,7 +16450,7 @@ class WebGLRenderer {
|
|
|
|
|
|
m_uniforms.envMap.value = envMap;
|
|
|
|
|
|
- m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? - 1 : 1;
|
|
|
+ m_uniforms.flipEnvMap.value = ( envMap.isCubeTexture && envMap.isRenderTargetTexture === false ) ? -1 : 1;
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -16759,7 +16759,7 @@ class WebGLRenderer {
|
|
|
|
|
|
}
|
|
|
|
|
|
- _currentMaterialId = - 1; // reset current material to ensure correct uniform bindings
|
|
|
+ _currentMaterialId = -1; // reset current material to ensure correct uniform bindings
|
|
|
|
|
|
};
|
|
|
|