Skip to content
Closed
Changes from 2 commits
Commits
Show all changes
151 commits
Select commit Hold shift + click to select a range
40d9cbc
Refactor BatchedMesh class error handling
Makio64 Oct 8, 2024
34a19b8
fix linting
Makio64 Oct 8, 2024
35f4555
GTAONode: Fix AO with WebGL backend. (#29593)
Mugen87 Oct 8, 2024
1ae4fce
OutlineNode: Improve approach (#29583)
sunag Oct 8, 2024
aedf298
WebGPURenderer: Introduce `PostProcessingUtils` (#29595)
sunag Oct 8, 2024
e754fce
Editor: Fixed editor not loading on Chrome 129.0.6668.100 due to impo…
mrdoob Oct 9, 2024
aa9e4ce
remove obsolete method (#29596)
aardgoose Oct 9, 2024
1a6d5e6
Addons: Add `SSRNode`. (#29597)
Mugen87 Oct 9, 2024
909af71
Examples: Clean up. (#29600)
linbingquan Oct 9, 2024
1d91b42
PostProcessingUtils: Improve names, replaced some `save` to `reset` (…
sunag Oct 9, 2024
981e8ee
better error message
Makio64 Oct 9, 2024
e6e4398
PostProcessingUtils: Add `getScreenPosition()`. (#29599)
Mugen87 Oct 9, 2024
0e17a92
WebGPURenderer: Fix missing updates to geometry attributes (#29589)
RenaudRohlinger Oct 9, 2024
c767fa1
Updated builds.
sunag Oct 9, 2024
5e3e26a
SSRNode: Honor `metalness`. (#29605)
Mugen87 Oct 9, 2024
4efe2d0
TSL: Introduce `premultipliedGaussianBlur` (#29604)
sunag Oct 9, 2024
69e0515
Examples: Added `hashBlur` and improve `webgpu_backdrop_area` example…
sunag Oct 10, 2024
279db99
TransformControls: Add min/max constraints. (#29602)
Makio64 Oct 10, 2024
767acce
Eslint: Add `no-irregular-whitespace` rule (#29608)
linbingquan Oct 10, 2024
3463260
GaussianBlurNode: Remove useless check. (#29611)
Mugen87 Oct 10, 2024
06e4cf1
ReflectorNode: Remove `getTextureNode()`. (#29609)
Mugen87 Oct 10, 2024
65c13da
TSL: `hashBlur` - added default `uv` (#29614)
sunag Oct 10, 2024
df215c8
WebGPURenderer: Introducing an `IndirectStorageBufferAttribute` (#29…
Spiri0 Oct 10, 2024
0e1ed5b
Update webgpu_postprocessing_ssr.html
Mugen87 Oct 10, 2024
f4afcaa
WebGPURenderer: Introduce indirect drawing support (#29615)
sunag Oct 10, 2024
7825616
Updated builds.
sunag Oct 11, 2024
d98942d
Typo: update prerequisites.html (#29616)
DevinCLane Oct 11, 2024
5b8270d
Bumped servez.
mrdoob Oct 11, 2024
32c7dc7
Bump cookie and express (#29617)
dependabot[bot] Oct 11, 2024
72b02f3
Removed unused textures. (#29618)
mrdoob Oct 11, 2024
c5329f9
Clean up.
mrdoob Oct 11, 2024
c8fd86d
Docs: Improve `WebGLRenderer` Chinese page. (#29620)
ShanHaiSiLu Oct 11, 2024
36bac08
Update webgpu_postprocessing_ssaa.html
Mugen87 Oct 11, 2024
0e584a2
Nodes: Fixes and improvements for `reflector` and `gaussianBlur` (#29…
sunag Oct 11, 2024
09a6807
ReflectorNode: Add `getDepthNode()`. (#29621)
Mugen87 Oct 11, 2024
c3e812b
WaterMesh: Fix planar offset - WebGPU (#29626)
sunag Oct 11, 2024
682e2fc
ReflectorNode: Added missing `nodeObject` (#29627)
sunag Oct 11, 2024
0eba913
Updated builds.
Mugen87 Oct 12, 2024
597481c
WebGPURenderer: webgl-fallback - fix uniform/texture index allocation…
aardgoose Oct 12, 2024
921284e
ReflectorNode: Fix projection matrix computation for WebGL. (#29630)
Mugen87 Oct 12, 2024
8e0ce15
Updated builds.
Mugen87 Oct 12, 2024
1886e4b
remove useless call (#29631)
aardgoose Oct 12, 2024
c8ff82d
Docs: Upgrade prettify.js. (#29633)
Mugen87 Oct 13, 2024
5328565
Update actions/upload-artifact digest to b4b15b8 (#29638)
renovate[bot] Oct 13, 2024
773a5c2
Update actions/checkout digest to eef6144 (#29637)
renovate[bot] Oct 13, 2024
0220bf6
Update dependency magic-string to v0.30.12 (#29641)
renovate[bot] Oct 13, 2024
3f9757e
Docs: Improve Chinese translation. (#29643)
puxiao Oct 14, 2024
bd27ad7
Update github/codeql-action digest to c36620d (#29640)
renovate[bot] Oct 14, 2024
03b0511
SSAAPassNode: Clean up. (#29647)
Mugen87 Oct 14, 2024
c4944f2
Docs: Fix typo and Improve `How-to-dispose-of-objects` page Korean t…
sungpaks Oct 14, 2024
5eb8dcf
Update webgpu_postprocessing_dof.html
Mugen87 Oct 14, 2024
bd8fb94
Playground: Add `normalMap` node. (#29652)
hybridherbst Oct 14, 2024
26efd87
WebGPUTextureUtils: Fix usage of `Texture.anisotropy`. (#29654)
Mugen87 Oct 14, 2024
25ff4db
WebGPURenderer: Introduce `TiledLighting` (#29642)
sunag Oct 14, 2024
a9f7169
Updated builds.
sunag Oct 15, 2024
752400c
fix(Material): sRGB decoding for VideoTexture .emissiveMap (#29657)
donmccurdy Oct 15, 2024
db6cb64
Update How-to-use-post-processing.html (#29665)
sawa-zen Oct 15, 2024
aa4fa45
fix: remove methods for CSSRenderer Objects within iframe (#29663)
yomotsu Oct 15, 2024
b9144b9
Addons: Add `TRAAPassNode`. (#29636)
Mugen87 Oct 15, 2024
fdd528d
Batchmesh: Fix cases where calling optimize can result in inconsisten…
gkjohnson Oct 16, 2024
aee03e7
3MFLoader: Add Preliminary Support for Loading Implicit Functions (#2…
zalo Oct 16, 2024
ac5804d
WebGPURenderer: Add backend information to `data-engine` field. (#29670)
jclaessens97 Oct 16, 2024
6ba7313
Examples: Clean up TSL editor example (#29669)
donmccurdy Oct 16, 2024
ce402f3
TRAAPassNode: Clean up. (#29671)
Mugen87 Oct 16, 2024
4e4f91b
Examples: Clean up. (#29672)
Mugen87 Oct 16, 2024
1360b24
Revert "WebGPURenderer: Add backend information to `data-engine` fiel…
Mugen87 Oct 16, 2024
29c41b6
WebGLRenderer: Correctly generate mipmaps for 3D & Array RenderTarget…
gkjohnson Oct 17, 2024
cef0049
GLTFExporter: Add support for WebGPURenderer (#29509)
donmccurdy Oct 17, 2024
20ce0ce
WebGPUTextureUtils: Disable uv transform. (#29680)
Mugen87 Oct 17, 2024
7fb8f94
WebGPUTextureUtils: Improve `uv` approach. (#29684)
Mugen87 Oct 17, 2024
8104618
Update webgl_loader_3mf.html
Mugen87 Oct 17, 2024
076d8d6
WebGPURenderer: Fix pipeline cache key (#29685)
sunag Oct 18, 2024
d74ecc5
BatchedMesh: Consolidate internal geometry information (#29687)
gkjohnson Oct 18, 2024
afd5105
AfterimagePass: Use copy shader. (#29691)
Mugen87 Oct 18, 2024
6e161d5
BatchedMesh: Batched cleanup 2 (#29695)
gkjohnson Oct 19, 2024
8cba4e8
WebGLRenderer: Always generate mipmaps when "generateMipmaps" is true…
gkjohnson Oct 19, 2024
19db40b
WebGLRenderer: Support render target textures in `copyTextureToTextur…
Mugen87 Oct 19, 2024
0ba7073
WebGLTextures: Ensure depth texture properties are deleted. (#29697)
Mugen87 Oct 19, 2024
2976aa1
GLTFExporter: Better defaults for metallic and roughness factors. (#2…
Mugen87 Oct 19, 2024
b73e59b
WebGLRenderer: Copy set of layers when copying 3d texture data (#29699)
gkjohnson Oct 20, 2024
58579a5
Examples: Cleanup `webgpu_lights_tiled` (#29701)
sunag Oct 20, 2024
16f2c3e
PhysicalLightingModel: Cleanup `evalIridescence` (#29702)
sunag Oct 20, 2024
04ddcb9
WebGPURenderer: Introduce waitForGPU (#29686)
RenaudRohlinger Oct 20, 2024
3102d6b
BufferGeometry: Check for existing attribute in `setFromPoints()`. (#…
Mugen87 Oct 20, 2024
863b873
Updated builds.
Mugen87 Oct 20, 2024
cde4019
Update PostProcessingUtils.js
Mugen87 Oct 20, 2024
4d08201
PostProcessingUtils: Add method for normal reconstruction. (#29703)
Mugen87 Oct 20, 2024
3020a31
BloomNode: Remove redundant clears. (#29704)
Mugen87 Oct 20, 2024
84183ce
Update github/codeql-action digest to f779452 (#29706)
renovate[bot] Oct 20, 2024
cb29f6f
TSL: Support defined color spaces in ColorSpaceNode (#29694)
donmccurdy Oct 20, 2024
39b1f02
WebGPURenderer: Added double-side transmission 1/2 (#29705)
sunag Oct 20, 2024
48e6e2e
GLTFExporter: Clearer code.
mrdoob Oct 21, 2024
8f4990f
Docs: Fix typos (#29716)
s-rigaud Oct 21, 2024
ad0dbfe
webgpu: add `wgsl` comment tag (#29709)
linbingquan Oct 21, 2024
44e18c8
RectAreaLightTextureLib: Fix DataTexture usage (#29717)
s-rigaud Oct 21, 2024
9c54823
Update OutlineNode.js
Mugen87 Oct 21, 2024
ca20cf9
Update OutlineNode.js
Mugen87 Oct 21, 2024
167c022
Addons: Add `LensflareNode`. (#29715)
Mugen87 Oct 21, 2024
1075735
WebGLRenderer: Stable reversed Z buffer implementation. (#29579)
eXponenta Oct 21, 2024
cdc33fe
Updated builds.
Mugen87 Oct 21, 2024
9aa74de
`LensflareNode`, `OutlineNode`: Added *Node suffix (#29719)
sunag Oct 21, 2024
4c36f5f
WebGPURenderer: Added double-side transmission 2/2 (#29718)
sunag Oct 21, 2024
6d6c60b
Docs: added copy button to non-inline code snippets (#29700)
snowiewdev Oct 22, 2024
86f1431
Examples: `webgpu_lights_tiled` cleanup (2) (#29722)
sunag Oct 22, 2024
68ea403
TiledLightsNode: Fix light intensity (#29723)
sunag Oct 22, 2024
226c32c
WGSLNodeFunction: Ignore convertion of unknown types (#29724)
sunag Oct 22, 2024
8be6bed
fix: uuid translation in Korean (#29731)
seopyoon Oct 23, 2024
c58511d
ConeGeometry: Check for vertex convergence before removing triangles …
gkjohnson Oct 23, 2024
3293572
WebGLRenderer: Allow for copying 2d targets to and from layers of 3d …
gkjohnson Oct 23, 2024
e4bae2f
Addons: Deprecate MMD modules. (#29698)
Mugen87 Oct 23, 2024
226a9ed
PassNode: Clean up. (#29733)
linbingquan Oct 23, 2024
a2befb6
NodeMaterialObserver: Fix buffer resize when `transmission` is used (…
sunag Oct 23, 2024
534a3fc
NodeMaterialObserver: Clean up (#29737)
sunag Oct 23, 2024
14b6142
Examples: Clean up. (#29738)
linbingquan Oct 24, 2024
4e6f914
Examples: Clean up. (#29743)
Mugen87 Oct 24, 2024
35adad2
KTX2Loader: Support transcoding UASTC HDR to BC6H and RGBA16 (#29730)
donmccurdy Oct 24, 2024
e7e4ceb
ScriptableNode: Rename `global` to `ScriptableNodeResources` (#29736)
scottmas Oct 25, 2024
1978cad
ProgressiveLightMap: Remove usage of `THREE` namespace. (#29747)
Mugen87 Oct 25, 2024
3f7243b
Examples: Remove usage of `THREE` namespace. (#29748)
linbingquan Oct 25, 2024
40367cd
GLTFLoader: Add KTX2 mime type support in getImageURIMimeType (#29746)
puxiao Oct 25, 2024
f827e45
ProgressiveLightMap: Add WebGPU version. (#29749)
Mugen87 Oct 25, 2024
59100c4
Addons: WebGPU CSM shadows - using shadowNode (#29610)
aardgoose Oct 26, 2024
a5cb106
Updated builds.
Mugen87 Oct 26, 2024
1573497
Update actions/checkout digest to 11bd719 (#29754)
renovate[bot] Oct 27, 2024
f3ee371
Update actions/setup-node digest to 39370e3 (#29755)
renovate[bot] Oct 27, 2024
6c231d8
WebXRManager: Inherit active layers from camera (#29742)
mrxz Oct 28, 2024
751d9ec
Addons: Remove `CinematicCamera`. (#29750)
Mugen87 Oct 28, 2024
d067dfd
LDrawLoader: Add WebGPU support. (#29752)
Mugen87 Oct 28, 2024
d59de8e
Docs:Manual lights.html typo (#29756)
Nokic233 Oct 29, 2024
bbfdeac
Add `Vector4.divide`, to match Vector3 and Vector2 function set (#29759)
kristiker Oct 29, 2024
ff6450a
NodeMaterial: Add support for `alphaHash`. (#29757)
Mugen87 Oct 29, 2024
b7ae580
Updated builds.
Mugen87 Oct 29, 2024
184cc6b
WebGPURenderer: Support `Scene.backgroundRotation`. (#29762)
Mugen87 Oct 29, 2024
09c38ab
WebGPURenderer: `copyFramebufferToTexture` - support for post-renderi…
sunag Oct 30, 2024
83c3f72
RectAreaLightNode: Fix `update()`. (#29771)
Mugen87 Oct 30, 2024
732bc2a
TSL: Add function for BPCEM. (#29773)
Mugen87 Oct 30, 2024
e5f2707
Examples: Remove raymarching GLSL demo. (#29774)
Mugen87 Oct 30, 2024
10b2770
Update SECURITY.md
Mugen87 Oct 30, 2024
f19ca73
Update SECURITY.md
Mugen87 Oct 30, 2024
ab048e6
WebGPURenderer: Handle Device Lost Event (#29767)
RenaudRohlinger Oct 31, 2024
bfa78c7
Updated package-lock.json
mrdoob Oct 31, 2024
bf00bb0
Updated builds.
mrdoob Oct 31, 2024
beab9e8
r170
mrdoob Oct 31, 2024
d0f64d6
Dev: Upgrade jimp to latest version. (#29780)
Mugen87 Oct 31, 2024
54c3413
Update constants.js
Mugen87 Oct 31, 2024
841ca14
WebGLRenderer: Add support for copying mipmap data between textures (…
gkjohnson Oct 31, 2024
c3a6e70
Materials: Revert static types of builtins materials (#29789)
RenaudRohlinger Nov 2, 2024
0dbc396
Refactor BatchedMesh class error handling
Makio64 Oct 8, 2024
5d901a3
better error message
Makio64 Oct 9, 2024
cb2cc29
Merge branch 'fix-batchedmesh-silent-error' of https://github.com/Mak…
Makio64 Nov 2, 2024
639ab20
clean old
Makio64 Nov 2, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 17 additions & 17 deletions src/objects/BatchedMesh.js
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,7 @@ class BatchedMesh extends Mesh {
const drawRanges = this._drawRanges;
if ( geometryId >= drawRanges.length || drawRanges[ geometryId ].active === false ) {

return this;
throw new Error( `BatchedMesh: Invalid geometryId ${geometryId}. Geometry is either out of range or inactive.` );

}

Expand Down Expand Up @@ -680,7 +680,7 @@ class BatchedMesh extends Mesh {
const drawInfo = this._drawInfo;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return this;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

Expand Down Expand Up @@ -865,7 +865,7 @@ class BatchedMesh extends Mesh {
const matricesArray = this._matricesTexture.image.data;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return this;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

Expand All @@ -882,7 +882,7 @@ class BatchedMesh extends Mesh {
const matricesArray = this._matricesTexture.image.data;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return null;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

Expand Down Expand Up @@ -923,7 +923,7 @@ class BatchedMesh extends Mesh {
const drawInfo = this._drawInfo;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return null;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

Expand All @@ -933,15 +933,18 @@ class BatchedMesh extends Mesh {

setVisibleAt( instanceId, value ) {

// if the geometry is out of range, not active, or visibility state
// does not change then return early
const drawInfo = this._drawInfo;
if (
instanceId >= drawInfo.length ||
drawInfo[ instanceId ].active === false ||
drawInfo[ instanceId ].visible === value
drawInfo[ instanceId ].active === false
) {

throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

if ( drawInfo[ instanceId ].visible === value ) {

return this;

}
Expand All @@ -955,11 +958,10 @@ class BatchedMesh extends Mesh {

getVisibleAt( instanceId ) {

// return early if the geometry is out of range or not active
const drawInfo = this._drawInfo;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return false;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

Expand All @@ -969,18 +971,16 @@ class BatchedMesh extends Mesh {

setGeometryIdAt( instanceId, geometryId ) {

// return early if the geometry is out of range or not active
const drawInfo = this._drawInfo;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return null;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

// check if the provided geometryId is within the valid range
if ( geometryId < 0 || geometryId >= this._geometryCount ) {

return null;
throw new Error( `BatchedMesh: Invalid geometryId ${geometryId}. Geometry is either out of range or inactive.` );

}

Expand All @@ -995,7 +995,7 @@ class BatchedMesh extends Mesh {
const drawInfo = this._drawInfo;
if ( instanceId >= drawInfo.length || drawInfo[ instanceId ].active === false ) {

return - 1;
throw new Error( `BatchedMesh: Invalid instanceId ${instanceId}. Instance is either out of range or inactive.` );

}

Expand All @@ -1007,7 +1007,7 @@ class BatchedMesh extends Mesh {

if ( geometryId < 0 || geometryId >= this._geometryCount ) {

return null;
throw new Error( `BatchedMesh: Invalid geometryId ${geometryId}. Geometry is either out of range or inactive.` );

}

Expand Down