Skip to content

Commit 85f77d7

Browse files
committed
Updated builds.
1 parent c0553ae commit 85f77d7

9 files changed

Lines changed: 351 additions & 153 deletions

build/three.cjs

Lines changed: 39 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9416,6 +9416,7 @@ class RenderTarget extends EventDispatcher {
94169416
if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
94179417

94189418
this.samples = source.samples;
9419+
this.multiview = source.multiview;
94199420

94209421
return this;
94219422

@@ -31492,6 +31493,7 @@ function CubicPoly() {
3149231493
//
3149331494

3149431495
const tmp = /*@__PURE__*/ new Vector3();
31496+
const tmp2 = /*@__PURE__*/ new Vector3();
3149531497
const px = /*@__PURE__*/ new CubicPoly();
3149631498
const py = /*@__PURE__*/ new CubicPoly();
3149731499
const pz = /*@__PURE__*/ new CubicPoly();
@@ -31616,8 +31618,8 @@ class CatmullRomCurve3 extends Curve {
3161631618
} else {
3161731619

3161831620
// extrapolate first point
31619-
tmp.subVectors( points[ 0 ], points[ 1 ] ).add( points[ 0 ] );
31620-
p0 = tmp;
31621+
tmp2.subVectors( points[ 0 ], points[ 1 ] ).add( points[ 0 ] );
31622+
p0 = tmp2;
3162131623

3162231624
}
3162331625

@@ -44806,10 +44808,11 @@ class DataTextureLoader extends Loader {
4480644808
} else {
4480744809

4480844810
error( e );
44809-
return;
4481044811

4481144812
}
4481244813

44814+
return;
44815+
4481344816
}
4481444817

4481544818
if ( texData.image !== undefined ) {
@@ -48109,6 +48112,8 @@ class BufferGeometryLoader extends Loader {
4810948112

4811048113
}
4811148114

48115+
const _customGeometries = {};
48116+
4811248117
/**
4811348118
* A loader for loading a JSON resource in the [JSON Object/Scene format](https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4).
4811448119
* The files are internally loaded via {@link FileLoader}.
@@ -48165,11 +48170,11 @@ class ObjectLoader extends Loader {
4816548170

4816648171
json = JSON.parse( text );
4816748172

48168-
} catch ( error ) {
48173+
} catch ( e ) {
4816948174

48170-
if ( onError !== undefined ) onError( error );
48175+
if ( onError !== undefined ) onError( e );
4817148176

48172-
error( 'ObjectLoader: Can\'t parse ' + url + '.', error.message );
48177+
error( 'ObjectLoader: Can\'t parse ' + url + '.', e.message );
4817348178

4817448179
return;
4817548180

@@ -48319,6 +48324,20 @@ class ObjectLoader extends Loader {
4831948324

4832048325
}
4832148326

48327+
/**
48328+
* Registers the given geometry at the internal
48329+
* geometry library.
48330+
*
48331+
* @static
48332+
* @param {string} type - The geometry type.
48333+
* @param {BufferGeometry.constructor} geometryClass - The geometry class.
48334+
*/
48335+
static registerGeometry( type, geometryClass ) {
48336+
48337+
_customGeometries[ type ] = geometryClass;
48338+
48339+
}
48340+
4832248341
// internals
4832348342

4832448343
parseShapes( json ) {
@@ -48399,9 +48418,13 @@ class ObjectLoader extends Loader {
4839948418

4840048419
geometry = Geometries[ data.type ].fromJSON( data, shapes );
4840148420

48421+
} else if ( data.type in _customGeometries ) {
48422+
48423+
geometry = _customGeometries[ data.type ].fromJSON( data, shapes );
48424+
4840248425
} else {
4840348426

48404-
warn( `ObjectLoader: Unsupported geometry type "${ data.type }"` );
48427+
warn( `ObjectLoader: Unknown geometry type "${ data.type }". Use .registerGeometry() before starting the deserialization process.` );
4840548428

4840648429
}
4840748430

@@ -56804,6 +56827,9 @@ class Line3 {
5680456827
_startEnd.subVectors( this.end, this.start );
5680556828

5680656829
const startEnd2 = _startEnd.dot( _startEnd );
56830+
56831+
if ( startEnd2 === 0 ) return 0;
56832+
5680756833
const startEnd_startP = _startEnd.dot( _startP );
5680856834

5680956835
let t = startEnd_startP / startEnd2;
@@ -64344,7 +64370,8 @@ function WebGLOutput( type, width, height, depth, stencil ) {
6434464370
const targetA = new WebGLRenderTarget( width, height, {
6434564371
type: type,
6434664372
depthBuffer: depth,
64347-
stencilBuffer: stencil
64373+
stencilBuffer: stencil,
64374+
depthTexture: depth ? new DepthTexture( width, height ) : undefined
6434864375
} );
6434964376

6435064377
const targetB = new WebGLRenderTarget( width, height, {
@@ -64565,6 +64592,7 @@ function WebGLOutput( type, width, height, depth, stencil ) {
6456564592

6456664593
this.dispose = function () {
6456764594

64595+
if ( targetA.depthTexture ) targetA.depthTexture.dispose();
6456864596
targetA.dispose();
6456964597
targetB.dispose();
6457064598
geometry.dispose();
@@ -76108,7 +76136,7 @@ class WebGLRenderer {
7610876136

7610976137
if ( _outputBufferType === UnsignedByteType ) {
7611076138

76111-
console.error( 'THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.' );
76139+
error( 'THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.' );
7611276140
return;
7611376141

7611476142
}
@@ -76119,7 +76147,7 @@ class WebGLRenderer {
7611976147

7612076148
if ( effects[ i ].isOutputPass === true ) {
7612176149

76122-
console.warn( 'THREE.WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.' );
76150+
warn( 'THREE.WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.' );
7612376151
break;
7612476152

7612576153
}
@@ -76379,6 +76407,7 @@ class WebGLRenderer {
7637976407
if ( depth ) {
7638076408

7638176409
bits |= _gl.DEPTH_BUFFER_BIT;
76410+
this.state.buffers.depth.setMask( true );
7638276411

7638376412
}
7638476413

build/three.core.js

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9436,6 +9436,7 @@ class RenderTarget extends EventDispatcher {
94369436
if ( source.depthTexture !== null ) this.depthTexture = source.depthTexture.clone();
94379437

94389438
this.samples = source.samples;
9439+
this.multiview = source.multiview;
94399440

94409441
return this;
94419442

@@ -31512,6 +31513,7 @@ function CubicPoly() {
3151231513
//
3151331514

3151431515
const tmp = /*@__PURE__*/ new Vector3();
31516+
const tmp2 = /*@__PURE__*/ new Vector3();
3151531517
const px = /*@__PURE__*/ new CubicPoly();
3151631518
const py = /*@__PURE__*/ new CubicPoly();
3151731519
const pz = /*@__PURE__*/ new CubicPoly();
@@ -31636,8 +31638,8 @@ class CatmullRomCurve3 extends Curve {
3163631638
} else {
3163731639

3163831640
// extrapolate first point
31639-
tmp.subVectors( points[ 0 ], points[ 1 ] ).add( points[ 0 ] );
31640-
p0 = tmp;
31641+
tmp2.subVectors( points[ 0 ], points[ 1 ] ).add( points[ 0 ] );
31642+
p0 = tmp2;
3164131643

3164231644
}
3164331645

@@ -44826,10 +44828,11 @@ class DataTextureLoader extends Loader {
4482644828
} else {
4482744829

4482844830
error( e );
44829-
return;
4483044831

4483144832
}
4483244833

44834+
return;
44835+
4483344836
}
4483444837

4483544838
if ( texData.image !== undefined ) {
@@ -48129,6 +48132,8 @@ class BufferGeometryLoader extends Loader {
4812948132

4813048133
}
4813148134

48135+
const _customGeometries = {};
48136+
4813248137
/**
4813348138
* A loader for loading a JSON resource in the [JSON Object/Scene format](https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4).
4813448139
* The files are internally loaded via {@link FileLoader}.
@@ -48185,11 +48190,11 @@ class ObjectLoader extends Loader {
4818548190

4818648191
json = JSON.parse( text );
4818748192

48188-
} catch ( error ) {
48193+
} catch ( e ) {
4818948194

48190-
if ( onError !== undefined ) onError( error );
48195+
if ( onError !== undefined ) onError( e );
4819148196

48192-
error( 'ObjectLoader: Can\'t parse ' + url + '.', error.message );
48197+
error( 'ObjectLoader: Can\'t parse ' + url + '.', e.message );
4819348198

4819448199
return;
4819548200

@@ -48339,6 +48344,20 @@ class ObjectLoader extends Loader {
4833948344

4834048345
}
4834148346

48347+
/**
48348+
* Registers the given geometry at the internal
48349+
* geometry library.
48350+
*
48351+
* @static
48352+
* @param {string} type - The geometry type.
48353+
* @param {BufferGeometry.constructor} geometryClass - The geometry class.
48354+
*/
48355+
static registerGeometry( type, geometryClass ) {
48356+
48357+
_customGeometries[ type ] = geometryClass;
48358+
48359+
}
48360+
4834248361
// internals
4834348362

4834448363
parseShapes( json ) {
@@ -48419,9 +48438,13 @@ class ObjectLoader extends Loader {
4841948438

4842048439
geometry = Geometries[ data.type ].fromJSON( data, shapes );
4842148440

48441+
} else if ( data.type in _customGeometries ) {
48442+
48443+
geometry = _customGeometries[ data.type ].fromJSON( data, shapes );
48444+
4842248445
} else {
4842348446

48424-
warn( `ObjectLoader: Unsupported geometry type "${ data.type }"` );
48447+
warn( `ObjectLoader: Unknown geometry type "${ data.type }". Use .registerGeometry() before starting the deserialization process.` );
4842548448

4842648449
}
4842748450

@@ -56824,6 +56847,9 @@ class Line3 {
5682456847
_startEnd.subVectors( this.end, this.start );
5682556848

5682656849
const startEnd2 = _startEnd.dot( _startEnd );
56850+
56851+
if ( startEnd2 === 0 ) return 0;
56852+
5682756853
const startEnd_startP = _startEnd.dot( _startP );
5682856854

5682956855
let t = startEnd_startP / startEnd2;

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

build/three.module.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* Copyright 2010-2026 Three.js Authors
44
* SPDX-License-Identifier: MIT
55
*/
6-
import { Matrix3, Vector2, Color, mergeUniforms, Vector3, CubeUVReflectionMapping, Mesh, BoxGeometry, ShaderMaterial, BackSide, cloneUniforms, Matrix4, ColorManagement, SRGBTransfer, PlaneGeometry, FrontSide, getUnlitUniformColorSpace, IntType, warn, HalfFloatType, UnsignedByteType, FloatType, RGBAFormat, Plane, CubeReflectionMapping, CubeRefractionMapping, BufferGeometry, OrthographicCamera, PerspectiveCamera, NoToneMapping, MeshBasicMaterial, error, NoBlending, WebGLRenderTarget, BufferAttribute, LinearSRGBColorSpace, LinearFilter, CubeTexture, LinearMipmapLinearFilter, CubeCamera, EquirectangularReflectionMapping, EquirectangularRefractionMapping, warnOnce, Uint32BufferAttribute, Uint16BufferAttribute, DataArrayTexture, Vector4, Float32BufferAttribute, RawShaderMaterial, CustomToneMapping, NeutralToneMapping, AgXToneMapping, ACESFilmicToneMapping, CineonToneMapping, ReinhardToneMapping, LinearToneMapping, Data3DTexture, GreaterEqualCompare, LessEqualCompare, DepthTexture, Texture, GLSL3, VSMShadowMap, PCFShadowMap, AddOperation, MixOperation, MultiplyOperation, LinearTransfer, UniformsUtils, DoubleSide, NormalBlending, TangentSpaceNormalMap, ObjectSpaceNormalMap, Layers, RGFormat, RG11_EAC_Format, RED_GREEN_RGTC2_Format, MeshDepthMaterial, MeshDistanceMaterial, PCFSoftShadowMap, DepthFormat, NearestFilter, CubeDepthTexture, UnsignedIntType, Frustum, LessEqualDepth, ReverseSubtractEquation, SubtractEquation, AddEquation, OneMinusConstantAlphaFactor, ConstantAlphaFactor, OneMinusConstantColorFactor, ConstantColorFactor, OneMinusDstAlphaFactor, OneMinusDstColorFactor, OneMinusSrcAlphaFactor, OneMinusSrcColorFactor, DstAlphaFactor, DstColorFactor, SrcAlphaSaturateFactor, SrcAlphaFactor, SrcColorFactor, OneFactor, ZeroFactor, NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceNone, CullFaceBack, CullFaceFront, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, ReversedDepthFuncs, MinEquation, MaxEquation, MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping, LinearMipmapNearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, NotEqualCompare, GreaterCompare, EqualCompare, LessCompare, AlwaysCompare, NeverCompare, NoColorSpace, DepthStencilFormat, getByteLength, UnsignedInt248Type, UnsignedShortType, createElementNS, UnsignedShort4444Type, UnsignedShort5551Type, UnsignedInt5999Type, UnsignedInt101111Type, ByteType, ShortType, AlphaFormat, RGBFormat, RedFormat, RedIntegerFormat, 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, R11_EAC_Format, SIGNED_R11_EAC_Format, SIGNED_RG11_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, SIGNED_RED_GREEN_RGTC2_Format, ExternalTexture, EventDispatcher, ArrayCamera, WebXRController, RAD2DEG, DataTexture, createCanvasElement, SRGBColorSpace, REVISION, log, WebGLCoordinateSystem, probeAsync } from './three.core.js';
6+
import { Matrix3, Vector2, Color, mergeUniforms, Vector3, CubeUVReflectionMapping, Mesh, BoxGeometry, ShaderMaterial, BackSide, cloneUniforms, Matrix4, ColorManagement, SRGBTransfer, PlaneGeometry, FrontSide, getUnlitUniformColorSpace, IntType, warn, HalfFloatType, UnsignedByteType, FloatType, RGBAFormat, Plane, CubeReflectionMapping, CubeRefractionMapping, BufferGeometry, OrthographicCamera, PerspectiveCamera, NoToneMapping, MeshBasicMaterial, error, NoBlending, WebGLRenderTarget, BufferAttribute, LinearSRGBColorSpace, LinearFilter, CubeTexture, LinearMipmapLinearFilter, CubeCamera, EquirectangularReflectionMapping, EquirectangularRefractionMapping, warnOnce, Uint32BufferAttribute, Uint16BufferAttribute, DataArrayTexture, Vector4, DepthTexture, Float32BufferAttribute, RawShaderMaterial, CustomToneMapping, NeutralToneMapping, AgXToneMapping, ACESFilmicToneMapping, CineonToneMapping, ReinhardToneMapping, LinearToneMapping, Data3DTexture, GreaterEqualCompare, LessEqualCompare, Texture, GLSL3, VSMShadowMap, PCFShadowMap, AddOperation, MixOperation, MultiplyOperation, LinearTransfer, UniformsUtils, DoubleSide, NormalBlending, TangentSpaceNormalMap, ObjectSpaceNormalMap, Layers, RGFormat, RG11_EAC_Format, RED_GREEN_RGTC2_Format, MeshDepthMaterial, MeshDistanceMaterial, PCFSoftShadowMap, DepthFormat, NearestFilter, CubeDepthTexture, UnsignedIntType, Frustum, LessEqualDepth, ReverseSubtractEquation, SubtractEquation, AddEquation, OneMinusConstantAlphaFactor, ConstantAlphaFactor, OneMinusConstantColorFactor, ConstantColorFactor, OneMinusDstAlphaFactor, OneMinusDstColorFactor, OneMinusSrcAlphaFactor, OneMinusSrcColorFactor, DstAlphaFactor, DstColorFactor, SrcAlphaSaturateFactor, SrcAlphaFactor, SrcColorFactor, OneFactor, ZeroFactor, NotEqualDepth, GreaterDepth, GreaterEqualDepth, EqualDepth, LessDepth, AlwaysDepth, NeverDepth, CullFaceNone, CullFaceBack, CullFaceFront, CustomBlending, MultiplyBlending, SubtractiveBlending, AdditiveBlending, ReversedDepthFuncs, MinEquation, MaxEquation, MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping, LinearMipmapNearestFilter, NearestMipmapLinearFilter, NearestMipmapNearestFilter, NotEqualCompare, GreaterCompare, EqualCompare, LessCompare, AlwaysCompare, NeverCompare, NoColorSpace, DepthStencilFormat, getByteLength, UnsignedInt248Type, UnsignedShortType, createElementNS, UnsignedShort4444Type, UnsignedShort5551Type, UnsignedInt5999Type, UnsignedInt101111Type, ByteType, ShortType, AlphaFormat, RGBFormat, RedFormat, RedIntegerFormat, 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, R11_EAC_Format, SIGNED_R11_EAC_Format, SIGNED_RG11_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, SIGNED_RED_GREEN_RGTC2_Format, ExternalTexture, EventDispatcher, ArrayCamera, WebXRController, RAD2DEG, DataTexture, createCanvasElement, SRGBColorSpace, REVISION, log, WebGLCoordinateSystem, probeAsync } from './three.core.js';
77
export { AdditiveAnimationBlendMode, AlwaysStencilFunc, AmbientLight, AnimationAction, AnimationClip, AnimationLoader, AnimationMixer, AnimationObjectGroup, AnimationUtils, ArcCurve, ArrowHelper, AttachedBindMode, Audio, AudioAnalyser, AudioContext, AudioListener, AudioLoader, AxesHelper, BasicDepthPacking, BasicShadowMap, BatchedMesh, BezierInterpolant, Bone, BooleanKeyframeTrack, Box2, Box3, Box3Helper, BoxHelper, BufferGeometryLoader, Cache, Camera, CameraHelper, CanvasTexture, CapsuleGeometry, CatmullRomCurve3, CircleGeometry, Clock, ColorKeyframeTrack, Compatibility, CompressedArrayTexture, CompressedCubeTexture, CompressedTexture, CompressedTextureLoader, ConeGeometry, Controls, CubeTextureLoader, CubicBezierCurve, CubicBezierCurve3, CubicInterpolant, CullFaceFrontBack, Curve, CurvePath, CylinderGeometry, Cylindrical, DataTextureLoader, DataUtils, DecrementStencilOp, DecrementWrapStencilOp, DefaultLoadingManager, DetachedBindMode, DirectionalLight, DirectionalLightHelper, DiscreteInterpolant, DodecahedronGeometry, DynamicCopyUsage, DynamicDrawUsage, DynamicReadUsage, EdgesGeometry, EllipseCurve, EqualStencilFunc, Euler, ExtrudeGeometry, FileLoader, Float16BufferAttribute, Fog, FogExp2, FramebufferTexture, FrustumArray, GLBufferAttribute, GLSL1, GreaterEqualStencilFunc, GreaterStencilFunc, GridHelper, Group, HemisphereLight, HemisphereLightHelper, IcosahedronGeometry, ImageBitmapLoader, ImageLoader, ImageUtils, IncrementStencilOp, IncrementWrapStencilOp, InstancedBufferAttribute, InstancedBufferGeometry, InstancedInterleavedBuffer, InstancedMesh, Int16BufferAttribute, Int32BufferAttribute, Int8BufferAttribute, InterleavedBuffer, InterleavedBufferAttribute, Interpolant, InterpolateBezier, InterpolateDiscrete, InterpolateLinear, InterpolateSmooth, InterpolationSamplingMode, InterpolationSamplingType, InvertStencilOp, KeepStencilOp, KeyframeTrack, LOD, LatheGeometry, LessEqualStencilFunc, LessStencilFunc, Light, LightProbe, Line, Line3, LineBasicMaterial, LineCurve, LineCurve3, LineDashedMaterial, LineLoop, LineSegments, LinearInterpolant, LinearMipMapLinearFilter, LinearMipMapNearestFilter, Loader, LoaderUtils, LoadingManager, LoopOnce, LoopPingPong, LoopRepeat, MOUSE, Material, MaterialBlending, MaterialLoader, MathUtils, Matrix2, MeshLambertMaterial, MeshMatcapMaterial, MeshNormalMaterial, MeshPhongMaterial, MeshPhysicalMaterial, MeshStandardMaterial, MeshToonMaterial, NearestMipMapLinearFilter, NearestMipMapNearestFilter, NeverStencilFunc, NoNormalPacking, NormalAnimationBlendMode, NormalGAPacking, NormalRGPacking, NotEqualStencilFunc, NumberKeyframeTrack, Object3D, ObjectLoader, OctahedronGeometry, Path, PlaneHelper, PointLight, PointLightHelper, Points, PointsMaterial, PolarGridHelper, PolyhedronGeometry, PositionalAudio, PropertyBinding, PropertyMixer, QuadraticBezierCurve, QuadraticBezierCurve3, Quaternion, QuaternionKeyframeTrack, QuaternionLinearInterpolant, RGBADepthPacking, RGBDepthPacking, RGBIntegerFormat, RGDepthPacking, Ray, Raycaster, RectAreaLight, RenderTarget, RenderTarget3D, ReplaceStencilOp, RingGeometry, Scene, ShadowMaterial, Shape, ShapeGeometry, ShapePath, ShapeUtils, Skeleton, SkeletonHelper, SkinnedMesh, Source, Sphere, SphereGeometry, Spherical, SphericalHarmonics3, SplineCurve, SpotLight, SpotLightHelper, Sprite, SpriteMaterial, StaticCopyUsage, StaticDrawUsage, StaticReadUsage, StereoCamera, StreamCopyUsage, StreamDrawUsage, StreamReadUsage, StringKeyframeTrack, TOUCH, TetrahedronGeometry, TextureLoader, TextureUtils, Timer, TimestampQuery, TorusGeometry, TorusKnotGeometry, Triangle, TriangleFanDrawMode, TriangleStripDrawMode, TrianglesDrawMode, TubeGeometry, UVMapping, Uint8BufferAttribute, Uint8ClampedBufferAttribute, Uniform, UniformsGroup, VectorKeyframeTrack, VideoFrameTexture, VideoTexture, WebGL3DRenderTarget, WebGLArrayRenderTarget, WebGPUCoordinateSystem, WireframeGeometry, WrapAroundEnding, ZeroCurvatureEnding, ZeroSlopeEnding, ZeroStencilOp, getConsoleFunction, setConsoleFunction } from './three.core.js';
88

99
function WebGLAnimation() {
@@ -4791,7 +4791,8 @@ function WebGLOutput( type, width, height, depth, stencil ) {
47914791
const targetA = new WebGLRenderTarget( width, height, {
47924792
type: type,
47934793
depthBuffer: depth,
4794-
stencilBuffer: stencil
4794+
stencilBuffer: stencil,
4795+
depthTexture: depth ? new DepthTexture( width, height ) : undefined
47954796
} );
47964797

47974798
const targetB = new WebGLRenderTarget( width, height, {
@@ -5012,6 +5013,7 @@ function WebGLOutput( type, width, height, depth, stencil ) {
50125013

50135014
this.dispose = function () {
50145015

5016+
if ( targetA.depthTexture ) targetA.depthTexture.dispose();
50155017
targetA.dispose();
50165018
targetB.dispose();
50175019
geometry.dispose();
@@ -16555,7 +16557,7 @@ class WebGLRenderer {
1655516557

1655616558
if ( _outputBufferType === UnsignedByteType ) {
1655716559

16558-
console.error( 'THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.' );
16560+
error( 'THREE.WebGLRenderer: setEffects() requires outputBufferType set to HalfFloatType or FloatType.' );
1655916561
return;
1656016562

1656116563
}
@@ -16566,7 +16568,7 @@ class WebGLRenderer {
1656616568

1656716569
if ( effects[ i ].isOutputPass === true ) {
1656816570

16569-
console.warn( 'THREE.WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.' );
16571+
warn( 'THREE.WebGLRenderer: OutputPass is not needed in setEffects(). Tone mapping and color space conversion are applied automatically.' );
1657016572
break;
1657116573

1657216574
}
@@ -16826,6 +16828,7 @@ class WebGLRenderer {
1682616828
if ( depth ) {
1682716829

1682816830
bits |= _gl.DEPTH_BUFFER_BIT;
16831+
this.state.buffers.depth.setMask( true );
1682916832

1683016833
}
1683116834

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