Skip to content

Commit a887bd5

Browse files
committed
Updated builds.
1 parent 2898b20 commit a887bd5

File tree

5 files changed

+128
-12
lines changed

5 files changed

+128
-12
lines changed

build/three.cjs

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
'use strict';
77

8-
const REVISION = '154';
8+
const REVISION = '155dev';
99

1010
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
1111
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
@@ -20306,6 +20306,18 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
2030620306
const HAS_ATTRIBUTE_UV2 = !! geometry.attributes.uv2;
2030720307
const HAS_ATTRIBUTE_UV3 = !! geometry.attributes.uv3;
2030820308

20309+
let toneMapping = NoToneMapping;
20310+
20311+
if ( material.toneMapped ) {
20312+
20313+
if ( currentRenderTarget === null || currentRenderTarget.isXRRenderTarget === true ) {
20314+
20315+
toneMapping = renderer.toneMapping;
20316+
20317+
}
20318+
20319+
}
20320+
2030920321
const parameters = {
2031020322

2031120323
isWebGL2: IS_WEBGL2,
@@ -20466,7 +20478,7 @@ function WebGLPrograms( renderer, cubemaps, cubeuvmaps, extensions, capabilities
2046620478
shadowMapEnabled: renderer.shadowMap.enabled && shadows.length > 0,
2046720479
shadowMapType: renderer.shadowMap.type,
2046820480

20469-
toneMapping: material.toneMapped ? renderer.toneMapping : NoToneMapping,
20481+
toneMapping: toneMapping,
2047020482
useLegacyLights: renderer.useLegacyLights,
2047120483

2047220484
premultipliedAlpha: material.premultipliedAlpha,
@@ -29490,7 +29502,18 @@ class WebGLRenderer {
2949029502
const morphTargets = !! geometry.morphAttributes.position;
2949129503
const morphNormals = !! geometry.morphAttributes.normal;
2949229504
const morphColors = !! geometry.morphAttributes.color;
29493-
const toneMapping = material.toneMapped ? _this.toneMapping : NoToneMapping;
29505+
29506+
let toneMapping = NoToneMapping;
29507+
29508+
if ( material.toneMapped ) {
29509+
29510+
if ( _currentRenderTarget === null || _currentRenderTarget.isXRRenderTarget === true ) {
29511+
29512+
toneMapping = _this.toneMapping;
29513+
29514+
}
29515+
29516+
}
2949429517

2949529518
const morphAttribute = geometry.morphAttributes.position || geometry.morphAttributes.normal || geometry.morphAttributes.color;
2949629519
const morphTargetsCount = ( morphAttribute !== undefined ) ? morphAttribute.length : 0;
@@ -32754,6 +32777,21 @@ class CompressedArrayTexture extends CompressedTexture {
3275432777

3275532778
}
3275632779

32780+
class CompressedCubeTexture extends CompressedTexture {
32781+
32782+
constructor( images, format, type ) {
32783+
32784+
super( undefined, images[ 0 ].width, images[ 0 ].height, format, type, CubeReflectionMapping );
32785+
32786+
this.isCompressedCubeTexture = true;
32787+
this.isCubeTexture = true;
32788+
32789+
this.image = images;
32790+
32791+
}
32792+
32793+
}
32794+
3275732795
class CanvasTexture extends Texture {
3275832796

3275932797
constructor( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
@@ -51303,6 +51341,7 @@ exports.Color = Color;
5130351341
exports.ColorKeyframeTrack = ColorKeyframeTrack;
5130451342
exports.ColorManagement = ColorManagement;
5130551343
exports.CompressedArrayTexture = CompressedArrayTexture;
51344+
exports.CompressedCubeTexture = CompressedCubeTexture;
5130651345
exports.CompressedTexture = CompressedTexture;
5130751346
exports.CompressedTextureLoader = CompressedTextureLoader;
5130851347
exports.ConeGeometry = ConeGeometry;

build/three.js

Lines changed: 42 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
1010
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.THREE = {}));
1111
})(this, (function (exports) { 'use strict';
1212

13-
const REVISION = '154';
13+
const REVISION = '155dev';
1414

1515
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
1616
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
@@ -20311,6 +20311,18 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
2031120311
const HAS_ATTRIBUTE_UV2 = !! geometry.attributes.uv2;
2031220312
const HAS_ATTRIBUTE_UV3 = !! geometry.attributes.uv3;
2031320313

20314+
let toneMapping = NoToneMapping;
20315+
20316+
if ( material.toneMapped ) {
20317+
20318+
if ( currentRenderTarget === null || currentRenderTarget.isXRRenderTarget === true ) {
20319+
20320+
toneMapping = renderer.toneMapping;
20321+
20322+
}
20323+
20324+
}
20325+
2031420326
const parameters = {
2031520327

2031620328
isWebGL2: IS_WEBGL2,
@@ -20471,7 +20483,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
2047120483
shadowMapEnabled: renderer.shadowMap.enabled && shadows.length > 0,
2047220484
shadowMapType: renderer.shadowMap.type,
2047320485

20474-
toneMapping: material.toneMapped ? renderer.toneMapping : NoToneMapping,
20486+
toneMapping: toneMapping,
2047520487
useLegacyLights: renderer.useLegacyLights,
2047620488

2047720489
premultipliedAlpha: material.premultipliedAlpha,
@@ -29495,7 +29507,18 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
2949529507
const morphTargets = !! geometry.morphAttributes.position;
2949629508
const morphNormals = !! geometry.morphAttributes.normal;
2949729509
const morphColors = !! geometry.morphAttributes.color;
29498-
const toneMapping = material.toneMapped ? _this.toneMapping : NoToneMapping;
29510+
29511+
let toneMapping = NoToneMapping;
29512+
29513+
if ( material.toneMapped ) {
29514+
29515+
if ( _currentRenderTarget === null || _currentRenderTarget.isXRRenderTarget === true ) {
29516+
29517+
toneMapping = _this.toneMapping;
29518+
29519+
}
29520+
29521+
}
2949929522

2950029523
const morphAttribute = geometry.morphAttributes.position || geometry.morphAttributes.normal || geometry.morphAttributes.color;
2950129524
const morphTargetsCount = ( morphAttribute !== undefined ) ? morphAttribute.length : 0;
@@ -32759,6 +32782,21 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
3275932782

3276032783
}
3276132784

32785+
class CompressedCubeTexture extends CompressedTexture {
32786+
32787+
constructor( images, format, type ) {
32788+
32789+
super( undefined, images[ 0 ].width, images[ 0 ].height, format, type, CubeReflectionMapping );
32790+
32791+
this.isCompressedCubeTexture = true;
32792+
this.isCubeTexture = true;
32793+
32794+
this.image = images;
32795+
32796+
}
32797+
32798+
}
32799+
3276232800
class CanvasTexture extends Texture {
3276332801

3276432802
constructor( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
@@ -51308,6 +51346,7 @@ console.warn( 'Scripts "build/three.js" and "build/three.min.js" are deprecated
5130851346
exports.ColorKeyframeTrack = ColorKeyframeTrack;
5130951347
exports.ColorManagement = ColorManagement;
5131051348
exports.CompressedArrayTexture = CompressedArrayTexture;
51349+
exports.CompressedCubeTexture = CompressedCubeTexture;
5131151350
exports.CompressedTexture = CompressedTexture;
5131251351
exports.CompressedTextureLoader = CompressedTextureLoader;
5131351352
exports.ConeGeometry = ConeGeometry;

build/three.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)