Skip to content

Commit 61f306e

Browse files
committed
Update builds.
1 parent 7b20707 commit 61f306e

11 files changed

+4461
-301
lines changed

build/three.cjs

Lines changed: 27 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/**
22
* @license
3-
* Copyright 2010-2024 Three.js Authors
3+
* Copyright 2010-2025 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/
66
'use strict';
77

8-
const REVISION = '172';
8+
const REVISION = '173dev';
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 };
@@ -17494,7 +17494,7 @@ class VideoTexture extends Texture {
1749417494

1749517495
}
1749617496

17497-
if ( 'requestVideoFrameCallback' in video ) {
17497+
if ( video && 'requestVideoFrameCallback' in video ) {
1749817498

1749917499
video.requestVideoFrameCallback( updateVideo );
1750017500

@@ -17511,16 +17511,29 @@ class VideoTexture extends Texture {
1751117511
update() {
1751217512

1751317513
const video = this.image;
17514-
const hasVideoFrameCallback = 'requestVideoFrameCallback' in video;
1751517514

17516-
if ( hasVideoFrameCallback === false && video.readyState >= video.HAVE_CURRENT_DATA ) {
17515+
if ( video ) {
1751717516

17518-
this.needsUpdate = true;
17517+
const isVideoFrame = video instanceof VideoFrame;
17518+
const hasVideoFrameCallback = 'requestVideoFrameCallback' in video;
17519+
17520+
if ( isVideoFrame === false && hasVideoFrameCallback === false && video.readyState >= video.HAVE_CURRENT_DATA ) {
17521+
17522+
this.needsUpdate = true;
17523+
17524+
}
1751917525

1752017526
}
1752117527

1752217528
}
1752317529

17530+
setFrame( frame ) {
17531+
17532+
this.image = frame;
17533+
this.needsUpdate = true;
17534+
17535+
}
17536+
1752417537
}
1752517538

1752617539
class FramebufferTexture extends Texture {
@@ -38577,13 +38590,17 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
3857738590
boxMesh.geometry.dispose();
3857838591
boxMesh.material.dispose();
3857938592

38593+
boxMesh = undefined;
38594+
3858038595
}
3858138596

3858238597
if ( planeMesh !== undefined ) {
3858338598

3858438599
planeMesh.geometry.dispose();
3858538600
planeMesh.material.dispose();
3858638601

38602+
planeMesh = undefined;
38603+
3858738604
}
3858838605

3858938606
}
@@ -50736,8 +50753,11 @@ class WebXRManager extends EventDispatcher {
5073650753
//
5073750754

5073850755
const enabledFeatures = session.enabledFeatures;
50756+
const gpuDepthSensingEnabled = enabledFeatures &&
50757+
enabledFeatures.includes( 'depth-sensing' ) &&
50758+
session.depthUsage == 'gpu-optimized';
5073950759

50740-
if ( enabledFeatures && enabledFeatures.includes( 'depth-sensing' ) ) {
50760+
if ( gpuDepthSensingEnabled && glBinding ) {
5074150761

5074250762
const depthData = glBinding.getDepthInformation( views[ 0 ] );
5074350763

build/three.core.js

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
/**
22
* @license
3-
* Copyright 2010-2024 Three.js Authors
3+
* Copyright 2010-2025 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/
6-
const REVISION = '172';
6+
const REVISION = '173dev';
77

88
const MOUSE = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 };
99
const TOUCH = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 };
@@ -17492,7 +17492,7 @@ class VideoTexture extends Texture {
1749217492

1749317493
}
1749417494

17495-
if ( 'requestVideoFrameCallback' in video ) {
17495+
if ( video && 'requestVideoFrameCallback' in video ) {
1749617496

1749717497
video.requestVideoFrameCallback( updateVideo );
1749817498

@@ -17509,16 +17509,29 @@ class VideoTexture extends Texture {
1750917509
update() {
1751017510

1751117511
const video = this.image;
17512-
const hasVideoFrameCallback = 'requestVideoFrameCallback' in video;
1751317512

17514-
if ( hasVideoFrameCallback === false && video.readyState >= video.HAVE_CURRENT_DATA ) {
17513+
if ( video ) {
1751517514

17516-
this.needsUpdate = true;
17515+
const isVideoFrame = video instanceof VideoFrame;
17516+
const hasVideoFrameCallback = 'requestVideoFrameCallback' in video;
17517+
17518+
if ( isVideoFrame === false && hasVideoFrameCallback === false && video.readyState >= video.HAVE_CURRENT_DATA ) {
17519+
17520+
this.needsUpdate = true;
17521+
17522+
}
1751717523

1751817524
}
1751917525

1752017526
}
1752117527

17528+
setFrame( frame ) {
17529+
17530+
this.image = frame;
17531+
this.needsUpdate = true;
17532+
17533+
}
17534+
1752217535
}
1752317536

1752417537
class FramebufferTexture extends Texture {

build/three.core.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.module.js

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2010-2024 Three.js Authors
3+
* Copyright 2010-2025 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/
66
import { Color, Matrix3, Vector2, mergeUniforms, Vector3, CubeUVReflectionMapping, Mesh, BoxGeometry, ShaderMaterial, cloneUniforms, BackSide, ColorManagement, SRGBTransfer, PlaneGeometry, FrontSide, getUnlitUniformColorSpace, Euler, Matrix4, IntType, RGBAFormat, HalfFloatType, UnsignedByteType, FloatType, Plane, EquirectangularReflectionMapping, EquirectangularRefractionMapping, WebGLCubeRenderTarget, CubeReflectionMapping, CubeRefractionMapping, PerspectiveCamera, NoToneMapping, MeshBasicMaterial, BufferGeometry, BufferAttribute, WebGLRenderTarget, NoBlending, OrthographicCamera, LinearFilter, LinearSRGBColorSpace, warnOnce, arrayNeedsUint32, Uint32BufferAttribute, Uint16BufferAttribute, Vector4, DataArrayTexture, LessEqualCompare, Texture, DepthTexture, Data3DTexture, CubeTexture, GLSL3, CustomToneMapping, NeutralToneMapping, AgXToneMapping, ACESFilmicToneMapping, CineonToneMapping, ReinhardToneMapping, LinearToneMapping, PCFShadowMap, PCFSoftShadowMap, VSMShadowMap, LinearTransfer, AddOperation, MixOperation, MultiplyOperation, ObjectSpaceNormalMap, TangentSpaceNormalMap, NormalBlending, DoubleSide, UniformsUtils, Layers, Frustum, MeshDepthMaterial, RGBADepthPacking, MeshDistanceMaterial, NearestFilter, LessEqualDepth, AddEquation, SubtractEquation, ReverseSubtractEquation, ZeroFactor, OneFactor, SrcColorFactor, SrcAlphaFactor, SrcAlphaSaturateFactor, DstColorFactor, DstAlphaFactor, OneMinusSrcColorFactor, OneMinusSrcAlphaFactor, OneMinusDstColorFactor, OneMinusDstAlphaFactor, ConstantColorFactor, OneMinusConstantColorFactor, ConstantAlphaFactor, OneMinusConstantAlphaFactor, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, CullFaceNone, CullFaceBack, CullFaceFront, NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessDepth, AlwaysDepth, NeverDepth, MinEquation, MaxEquation, RepeatWrapping, ClampToEdgeWrapping, MirroredRepeatWrapping, NearestMipmapNearestFilter, NearestMipmapLinearFilter, LinearMipmapNearestFilter, LinearMipmapLinearFilter, NeverCompare, AlwaysCompare, LessCompare, EqualCompare, GreaterEqualCompare, GreaterCompare, NotEqualCompare, NoColorSpace, DepthStencilFormat, getByteLength, UnsignedIntType, UnsignedInt248Type, UnsignedShortType, DepthFormat, createElementNS, UnsignedShort4444Type, UnsignedShort5551Type, UnsignedInt5999Type, ByteType, ShortType, AlphaFormat, RGBFormat, LuminanceFormat, LuminanceAlphaFormat, RedFormat, RedIntegerFormat, RGFormat, RGIntegerFormat, RGBAIntegerFormat, RGB_S3TC_DXT1_Format, RGBA_S3TC_DXT1_Format, RGBA_S3TC_DXT3_Format, RGBA_S3TC_DXT5_Format, RGB_PVRTC_4BPPV1_Format, RGB_PVRTC_2BPPV1_Format, RGBA_PVRTC_4BPPV1_Format, RGBA_PVRTC_2BPPV1_Format, RGB_ETC1_Format, RGB_ETC2_Format, RGBA_ETC2_EAC_Format, RGBA_ASTC_4x4_Format, RGBA_ASTC_5x4_Format, RGBA_ASTC_5x5_Format, RGBA_ASTC_6x5_Format, RGBA_ASTC_6x6_Format, RGBA_ASTC_8x5_Format, RGBA_ASTC_8x6_Format, RGBA_ASTC_8x8_Format, RGBA_ASTC_10x5_Format, RGBA_ASTC_10x6_Format, RGBA_ASTC_10x8_Format, RGBA_ASTC_10x10_Format, RGBA_ASTC_12x10_Format, RGBA_ASTC_12x12_Format, RGBA_BPTC_Format, RGB_BPTC_SIGNED_Format, RGB_BPTC_UNSIGNED_Format, RED_RGTC1_Format, SIGNED_RED_RGTC1_Format, RED_GREEN_RGTC2_Format, SIGNED_RED_GREEN_RGTC2_Format, Group, EventDispatcher, ArrayCamera, RAD2DEG, createCanvasElement, SRGBColorSpace, REVISION, toNormalizedProjectionMatrix, toReversedProjectionMatrix, probeAsync, WebGLCoordinateSystem } from './three.core.js';
@@ -1535,13 +1535,17 @@ function WebGLBackground( renderer, cubemaps, cubeuvmaps, state, objects, alpha,
15351535
boxMesh.geometry.dispose();
15361536
boxMesh.material.dispose();
15371537

1538+
boxMesh = undefined;
1539+
15381540
}
15391541

15401542
if ( planeMesh !== undefined ) {
15411543

15421544
planeMesh.geometry.dispose();
15431545
planeMesh.material.dispose();
15441546

1547+
planeMesh = undefined;
1548+
15451549
}
15461550

15471551
}
@@ -13694,8 +13698,11 @@ class WebXRManager extends EventDispatcher {
1369413698
//
1369513699

1369613700
const enabledFeatures = session.enabledFeatures;
13701+
const gpuDepthSensingEnabled = enabledFeatures &&
13702+
enabledFeatures.includes( 'depth-sensing' ) &&
13703+
session.depthUsage == 'gpu-optimized';
1369713704

13698-
if ( enabledFeatures && enabledFeatures.includes( 'depth-sensing' ) ) {
13705+
if ( gpuDepthSensingEnabled && glBinding ) {
1369913706

1370013707
const depthData = glBinding.getDepthInformation( views[ 0 ] );
1370113708

build/three.module.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

build/three.tsl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @license
3-
* Copyright 2010-2024 Three.js Authors
3+
* Copyright 2010-2025 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/
66
import { TSL } from 'three/webgpu';

build/three.tsl.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)