Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft merge latest three.js #15

Draft
wants to merge 4,549 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
4549 commits
Select commit Hold shift + click to select a range
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
823d383
Examples: Improve index.html (#29791)
linbingquan Nov 2, 2024
f692cfb
Examples: Clean up. (#29792)
linbingquan Nov 2, 2024
8b0c9ac
WebGPURenderer: Make sure default instance of `CompressedTexture` wor…
Mugen87 Nov 2, 2024
9853674
SceneOptimizer: Introduce `optimizer.toBatchedMesh()` (#29782)
RenaudRohlinger Nov 2, 2024
bcf79e4
UVsDebug: Clean up. (#29794)
linbingquan Nov 3, 2024
9e5528d
Update github/codeql-action digest to 6624720 (#29796)
renovate[bot] Nov 3, 2024
3ef244c
Addons: Fix `PostProcessingUtils` import. (#29801)
Mugen87 Nov 4, 2024
c3f685f
NodeMaterial: Only call `setupDepth()` with active depth buffer. (#29…
Mugen87 Nov 4, 2024
728ebc1
PointerLockControls: remove browser prefixes for "MouseEvent.movement…
satelllte Nov 4, 2024
482697c
docs-emphazise-difference-batched-instanced-meshes (#29803)
s-rigaud Nov 4, 2024
8c56d70
Docs Renderer: fix typos (#29804)
s-rigaud Nov 4, 2024
f32e5fc
Docs Clock: Remove outdated description (#29805)
s-rigaud Nov 4, 2024
60a60d1
StereoCompositePassNode: Fix state reset/restore. (#29806)
Mugen87 Nov 4, 2024
d7da5e0
WebGPURenderer: implement ClippingGroup object (#28237)
aardgoose Nov 4, 2024
c9bdf26
Updated builds.
Mugen87 Nov 4, 2024
6933414
RenderObjects: Force update if geometry has changed. (#29807)
sunag Nov 5, 2024
f421bff
BatchedMesh - better error handling 2 (#29790)
Makio64 Nov 5, 2024
c177eaf
WebGPURenderer: Make `Animation` WebXR compatible. (#29783)
Mugen87 Nov 5, 2024
9acbd36
Updated builds.
Mugen87 Nov 5, 2024
5f8c2fb
Docs: Improve `GLTFExporter` page. (#29809)
Mugen87 Nov 5, 2024
b54d466
CSMShadowNode: Remove name collision. (#29811)
Mugen87 Nov 5, 2024
bb4eacd
fix: Spaces cause path parsing errors (#29819)
Nokic233 Nov 6, 2024
99a0210
Vector: Consume MathUtils.clamp internally (#29812)
satelllte Nov 6, 2024
9ca9114
Fix loaderArrayLoadRE regex to allow spaces before square bracket (#2…
mrxz Nov 6, 2024
665679a
Revert "fix: Spaces cause path parsing errors (#29819)" (#29821)
Mugen87 Nov 6, 2024
f2d69d1
PostProcessing: Harmonize node type. (#29823)
Mugen87 Nov 6, 2024
d82b592
ColorManagement: Support treeshake. (#29816)
linbingquan Nov 6, 2024
8bc792b
WebGPURenderer: hardware clipping support. (#28578)
aardgoose Nov 6, 2024
7905c96
GTAONode: Add `resolutionScale`. (#29826)
Mugen87 Nov 6, 2024
5d71052
src: Use MathUtils.clamp for `Spherical.makeSafe` (#29824)
linbingquan Nov 6, 2024
d2875f6
WGSLNodeBuilder: Added support for `.wrap*` using `biquadraticTexture…
sunag Nov 7, 2024
3728a0a
Renderer: Fix `getShaderAsync()`. (#29832)
Mugen87 Nov 7, 2024
d2f7f08
Line2NodeMaterial: Fix broken dash. (#29835)
Mugen87 Nov 7, 2024
abe510a
RenderObject: Added `.setGeometry()` (#29836)
sunag Nov 7, 2024
736201e
TSL: `shadows` (#29838)
sunag Nov 8, 2024
84a69f5
Codesplit WebGL/WebGPU entrypoints (#29404)
CodyJasonBennett Nov 8, 2024
296440a
Examples: Improve `webgpu_postprocessing_ao`. (#29843)
Mugen87 Nov 8, 2024
4849936
Updated builds.
Mugen87 Nov 8, 2024
8f55e4b
NodeMaterial: Added `.castShadowNode` and `.receivedShadowNode` (#29840)
sunag Nov 8, 2024
5255e36
ShadowNode: Fix warning property name.
sunag Nov 8, 2024
d35544a
WGSLNodeBuilder: Fix `generateWrapFunction()` cache includes (#29846)
sunag Nov 8, 2024
0709293
Docs: Loaders - "progresses" typo (#29848)
satelllte Nov 8, 2024
64a823e
Update github/codeql-action digest to 4f3212b (#29853)
renovate[bot] Nov 10, 2024
a692ffc
Update devDependencies (non-major) (#29854)
renovate[bot] Nov 10, 2024
a328c69
WebGPURenderer: Handle OutOfMemory in Timestamp Tracking (#29857)
RenaudRohlinger Nov 11, 2024
b276fb5
WebGLBackground: Add `dispose()`. (#29858)
Mugen87 Nov 11, 2024
e08c3e7
OrbitControl: Honor `enableRotate` in `_handleKeyDown`.
Mugen87 Nov 12, 2024
ed9f5a1
Docs:: Add documentation for `ClippingGroup`. (#29833)
aardgoose Nov 12, 2024
901c516
WebGPURenderer: Fix OffscreenCanvas Support in WebGL (#29867)
RenaudRohlinger Nov 12, 2024
2c2bfc3
Codesplit WebGL/WebGPU entrypoints: Fix WebGPU Addons (#29644)
RenaudRohlinger Nov 12, 2024
91147e9
DecalGeometry: Add default parameters. (#29868)
Mugen87 Nov 12, 2024
bb7f17a
WebGPURenderer: Per "texture set" bindGroup caching. (#29845)
aardgoose Nov 13, 2024
485f7f0
WebGPU: Logarithmic Depth Buffer Rename/Revision + GTAONode Fixes (#2…
PoseidonEnergy Nov 13, 2024
b2057a3
Updated builds.
Mugen87 Nov 13, 2024
20c67d6
WebGPURenderer: Fix ImageBitmap flip in WebGLBackend (#29866)
RenaudRohlinger Nov 13, 2024
e5e8d20
RenderObjects: Force `material.needsUpdate=true` to update the materi…
sunag Nov 13, 2024
cb663c5
TiledLightsNode: Fix `reflectedLight` declaration sequence (#29874)
sunag Nov 13, 2024
3e29a39
SSRNode: Add temporary fix for Chrome. (#29875)
Mugen87 Nov 14, 2024
70bdbb7
Updated builds.
mrdoob Nov 14, 2024
2058544
Examples: Clean up. (#29877)
Mugen87 Nov 14, 2024
651280b
Examples: Improve `webgpu_postprocessing_ssr`. (#29878)
Mugen87 Nov 14, 2024
d9b1b3c
WebGLBackend: Fix geometry change (#29880)
sunag Nov 14, 2024
2f35721
TSL: Add `blendNormal()` to `BlendMode`. (#29879)
Mugen87 Nov 14, 2024
0d266cd
Updated builds.
Mugen87 Nov 14, 2024
3b59818
Docs:Libraries-and-Plugins translation (#29885)
mmjinglin163 Nov 15, 2024
0ddfe95
post-processing: missing FR translation (#29901)
satelllte Nov 15, 2024
455e038
post-processing: missing FR translation (2) (#29902)
satelllte Nov 15, 2024
5b51d6f
KTX2Loader: Fix .minFilter default for untranscoded compressed textur…
donmccurdy Nov 15, 2024
d792454
TSL: Introduce `instance()` for custom use (#29911)
sunag Nov 16, 2024
9f289d8
WGSLNodeBuilder: Improve `NearestFilter` support (#29910)
sunag Nov 16, 2024
19123ff
Updated builds.
sunag Nov 17, 2024
396d1fb
Update dependency rollup to v4.27.2 (#29914)
renovate[bot] Nov 17, 2024
3897777
Update github/codeql-action digest to ea9e4e3 (#29913)
renovate[bot] Nov 17, 2024
528320b
WebGLGeometries: don't upload morph target attributes (#29915)
mrxz Nov 18, 2024
800a472
Docs:Color-management translation (#29918)
mmjinglin163 Nov 18, 2024
e0a7471
ArcballControls: Arcball optional focus (#29871)
kxxhan Nov 18, 2024
405ad7b
BlendModes: Added `blend*` prefix (#29897)
sunag Nov 19, 2024
cef3838
WebGPURenderer: Fix `shadowPositionNode` cache (#29921)
sunag Nov 19, 2024
4f80c63
Updated builds.
sunag Nov 19, 2024
9f05e61
Docs:Improve documentation about WebGLRenderer.extensions (#29920)
puxiao Nov 19, 2024
de9b967
LineGeometry: Override setFromPoints method (#29681)
felixwri Nov 19, 2024
84873b3
Vector: Replace `MathUtils.clamp()` with `clamp()` (#29929)
mrdoob Nov 20, 2024
d6c03fc
Examples: add `glsl` comment tag (#29932)
linbingquan Nov 20, 2024
587bf61
Examples: Improve `webgpu_postprocessing_sobel`. (#29934)
Mugen87 Nov 20, 2024
20a5462
Examples: Clean up. (#29936)
Mugen87 Nov 20, 2024
0a868ea
fix SceneOptimizer (#29935)
AlaricBaraou Nov 20, 2024
8842ee0
WebGPU: Remove `GPUShaderStage` hack. (#29933)
Mugen87 Nov 20, 2024
e30ebff
Renderer: Add `hasInitialized()`. (#29937)
Mugen87 Nov 20, 2024
6394902
WebGPURenderer: Add `PointShadowNode` (#29849)
sunag Nov 21, 2024
19cf915
AnalyticLightNode: Reset `shadowNode` after dispose (#29939)
sunag Nov 21, 2024
8ce69e0
Updated builds.
sunag Nov 21, 2024
dce25de
Audio: Ensure progress is reset in `onEnded()`. (#29930)
Jian-Nam Nov 21, 2024
7531915
SSRNode: Support logarithmic depth. (#29941)
Mugen87 Nov 21, 2024
3e75815
Updated builds.
mrdoob Nov 22, 2024
c2909f2
Clean up imports (#29943)
WestLangley Nov 22, 2024
0826376
WebGPUTextureUtils: Fix `dispose()` of `VideoTexture`. (#29944)
Mugen87 Nov 22, 2024
ca5af63
GLSLNodeBuilder: Fix color space regression. (#29945)
Mugen87 Nov 22, 2024
fab2d40
Tests: Use absolute delta value when comparing against tolerance (#29…
mrxz Nov 23, 2024
1e01d5f
Renderer: Add `initTexture()`. (#29947)
Mugen87 Nov 23, 2024
89d1a06
TSL: Introduce `attributeArray` and `instancedArray` (#29881)
sunag Nov 23, 2024
05cfdd9
GLSLNodeBuilder: Fix varying `color` type (#29950)
sunag Nov 23, 2024
34ba512
PMREMGenerator: Add `fromSceneAsync()` (#29951)
sunag Nov 24, 2024
927c20c
WebGPURenderer: Fix global references in Node.js (#29919)
whatisor Nov 24, 2024
4da9d95
Updated builds.
Mugen87 Nov 24, 2024
8838dc8
Update devDependencies (non-major) (#29955)
renovate[bot] Nov 24, 2024
0504214
Update github/codeql-action digest to f09c1c0 (#29954)
renovate[bot] Nov 24, 2024
84ab41c
Builds: Introduce `three.tsl.js` (#29948)
sunag Nov 24, 2024
ddae920
Updated builds.
sunag Nov 24, 2024
5ae1aa2
Update webgpu_postprocessing_ssr.html
Mugen87 Nov 24, 2024
015480e
Examples: Cleanup `webgpu_sandbox`
sunag Nov 25, 2024
54ce779
TSL: `convertToTexture()` - return `pass()` texture if available (#29…
sunag Nov 25, 2024
4cc2eb5
TSL Transpiler: Fixes (#29958)
sunag Nov 25, 2024
add7f9b
Fix: prevent crash when calling BufferGeometry.setFromPoints with too…
rotu Nov 25, 2024
4749f99
PMREMGenerator: Add optional `renderTarget` in `fromScene()` (#29959)
sunag Nov 25, 2024
c19aa19
WebGPU: Fix `navigator` usage. (#29965)
Mugen87 Nov 25, 2024
a0a25ea
WebGPUAttributeUtils: fix updateAttribute() when using range (#29966)…
holtsetio Nov 26, 2024
de7c7c8
Audio: Override copy and clone methods to include missing properties …
Byongho96 Nov 26, 2024
4d476ff
Update Audio.js
Mugen87 Nov 26, 2024
66bba62
Examples: Clean up. (#29972)
Mugen87 Nov 26, 2024
96e5149
WebGPUBackend: Simplify Timestamp Queries and Ensure Work Done (#29970)
RenaudRohlinger Nov 26, 2024
92e60c2
WebGPURenderer: Fix integer uniforms (#29976)
holtsetio Nov 26, 2024
269e892
NodeMaterial: Fix `getAlphaHashThreshold()` properties conflict (#29977)
sunag Nov 27, 2024
5855564
WebGPURenderer: Fix viewport/scissor after `copyFramebufferToTexture(…
sunag Nov 27, 2024
5fa82c7
Line2NodeMaterial: Add `opacity` support using `backdrop` (#29979)
sunag Nov 27, 2024
e5db8e9
TSL: Deprecated `storageObject()` (#29982)
sunag Nov 27, 2024
27d1054
Renamed Three.core.js to Three.Core.js.
mrdoob Nov 28, 2024
296e082
Updated builds.
mrdoob Nov 28, 2024
ada8ab4
Fix build. (#29985)
Mugen87 Nov 28, 2024
6588502
Fix: webgl_renderer_pathtracer requiring lines (#29987)
Zelif Nov 28, 2024
e2e04d3
WebGPURenderer: Add `SpotLight.map` support (#29989)
sunag Nov 28, 2024
f91fbc3
WebGPURenderer: Shadow fixes (#29991)
sunag Nov 29, 2024
4f3e462
WebGPURenderer: Add Missing Export `NodeAccess` (#29993)
RenaudRohlinger Nov 29, 2024
fcde431
WebGPURenderer: textureLoad add texture_external and texture_storage …
RenaudRohlinger Nov 29, 2024
a751f9b
Updated builds.
mrdoob Nov 29, 2024
2898f5b
r171
mrdoob Nov 29, 2024
17c59b2
Update bug_report.yml
Mugen87 Nov 29, 2024
d9c9920
OrbitControls: Add `keyRotateSpeed`. (#29988)
bbsimong Nov 29, 2024
3e54130
Eslint: Improve config (#29981)
s-rigaud Nov 29, 2024
ffa7aa7
Eslint: run fix with new rules (#29997)
s-rigaud Nov 29, 2024
20b97a4
Docs: Add JSDoc config and improve `Node` docs. (#29984)
Mugen87 Nov 30, 2024
a77056b
fix: minor grammar correction (#29999)
NeelDigonto Nov 30, 2024
c9e64a1
Playground: Cleanup (#29998)
linbingquan Nov 30, 2024
f81793c
Node: Document more modules. (#30000)
Mugen87 Nov 30, 2024
8ec7166
UniformGroup: Delete unused file. (#30002)
Mugen87 Dec 1, 2024
e0e5370
Node: Document more modules. (#30001)
Mugen87 Dec 1, 2024
7d1859d
Addons: Remove MMD modules. (#30003)
Mugen87 Dec 1, 2024
6c3fdd7
Update constants.js
Mugen87 Dec 1, 2024
f91ace9
Three.Legacy: Remove deprecated code. (#30004)
Mugen87 Dec 1, 2024
241e875
Update devDependencies (non-major) (#30005)
renovate[bot] Dec 1, 2024
9d40e23
Update AssignNode.js
Mugen87 Dec 1, 2024
3716f3e
Node: Document more modules. (#30009)
Mugen87 Dec 1, 2024
09add0e
Typos (#30015)
s-rigaud Dec 2, 2024
036e03e
Doc: fix typos (#30013)
s-rigaud Dec 2, 2024
45b953d
Add 24bit uncompressed RGB support to DDSLoader (#30010)
sam6321 Dec 2, 2024
480c414
Update Matrix3.tests.js
Mugen87 Dec 2, 2024
b2320be
Node: Document more modules. (#30012)
Mugen87 Dec 2, 2024
360600e
Updated builds.
Mugen87 Dec 2, 2024
5d6a035
Docs: fix french typos (#30019)
s-rigaud Dec 2, 2024
66d95a0
Update NodeFunctionInput.js (#30020)
sunag Dec 3, 2024
0c45156
NodeBuilder: More docs. (#30025)
Mugen87 Dec 3, 2024
93dccc1
Node: Document more modules. (#30027)
Mugen87 Dec 3, 2024
ae2791a
WebGPURenderer: Fix filterable depth textures (#30023)
sunag Dec 3, 2024
ad0ff80
LineSegments2: Fix `raycast()` . (#30016)
Samsy Dec 4, 2024
3df50b7
WebGPUBackend: Revert onSubmittedWorkDone usage in timestamp queries …
RenaudRohlinger Dec 4, 2024
d9bf05e
Examples: webgpu_lines_fat_raycasting (#30030)
RenaudRohlinger Dec 4, 2024
dfab00f
Docs: Fix code blocks occasionally lacking white-space in Firefox (#3…
mrxz Dec 4, 2024
946a69c
Node: Document more modules. (#30037)
Mugen87 Dec 4, 2024
ae90867
WebGPURenderer: Add `onBeforeShadow` and `onAfterShadow` (#30032)
RenaudRohlinger Dec 4, 2024
16cb40e
Node: Document more modules. (#30041)
Mugen87 Dec 5, 2024
3d97470
NodeBuilder: More docs. (#30038)
sunag Dec 5, 2024
53002f2
Node: Add more docs. (#30046)
Mugen87 Dec 6, 2024
88aa95a
Docs: Add examples for the `onBeforeCompile` method in Material (#30043)
borisghidaglia Dec 6, 2024
04d8b8b
Node: fix small typos (#30049)
s-rigaud Dec 6, 2024
c3a82ac
PropertyBinding: Fix versioning scheme determination. (#30054)
Mugen87 Dec 7, 2024
898b38a
Node: Document more modules. (#30055)
Mugen87 Dec 7, 2024
58a9949
UniformArrayNode: add support for `mat2`, `mat3` and `mat4` types (#3…
holtsetio Dec 7, 2024
e4a48bd
LightsNode: Fix cache key. (#30045)
Mugen87 Dec 7, 2024
1b6a704
UniformArrayNode: Fix `getNodeType()` (#30058)
sunag Dec 7, 2024
d22a8f8
Docs: Improve material pages. (#30059)
Mugen87 Dec 7, 2024
f5f25c3
ShadowBaseNode: Fix CSM `shadowWorldPosition` (#30060)
sunag Dec 7, 2024
ed96b8d
TextureNode: Rename `.uv()` -> `.sample()` (#30061)
sunag Dec 7, 2024
3a581bf
WGSLNodeBuilder: Sampler for compute shader (#30033)
Spiri0 Dec 8, 2024
0096caf
Node: Add `.customCacheKey()` (#30062)
sunag Dec 8, 2024
c99f1e9
Updated builds.
sunag Dec 8, 2024
c43288e
ShadowNode: Fix `updateMatrices` sequence (#30064)
sunag Dec 8, 2024
19bdc3a
Node: Document more modules. (#30067)
Mugen87 Dec 8, 2024
4f25a31
PMREMGenerator: Fix `fromScene()` back-side materials (#30063)
sunag Dec 8, 2024
fe970a4
Editor: Fix vertex normals helper regression. (#30069)
Mugen87 Dec 8, 2024
ce0ddc2
Update github/codeql-action digest to aa57810 (#30068)
renovate[bot] Dec 9, 2024
ef48dee
WebGLRenderer: Add transmission render target scale (#30018)
michaeldll Dec 9, 2024
1fc010c
Nodes: Document more modules. (#30075)
Mugen87 Dec 9, 2024
fa8e6a1
Eslint: enforce valid JSdoc format (#30076)
s-rigaud Dec 9, 2024
915b1d6
Nodes: fix type errors (#30079)
s-rigaud Dec 9, 2024
047f7d7
Eslint: Avoid relying on unsafe == and != js behavior (#30078)
s-rigaud Dec 9, 2024
dc34412
WebGPURenderer: Fix blending opacity in shadows (#30081)
sunag Dec 10, 2024
cfd6985
Updated builds.
sunag Dec 10, 2024
8d55664
TSL: Improve fog approach. (#30080)
sunag Dec 10, 2024
0338a81
WebGPURenderer: Fix support for non-indexed BatchedMesh (#30084)
RenaudRohlinger Dec 10, 2024
8ac75e9
WebGPURenderer: Fix Hardware Clipping issues (#30083)
RenaudRohlinger Dec 10, 2024
0eae292
Nodes: Document more modules. (#30087)
Mugen87 Dec 10, 2024
c797bc2
Eslint: fix more JSDocs (#30093)
s-rigaud Dec 10, 2024
08411fb
Node: typos (#30095)
s-rigaud Dec 10, 2024
de85929
Update .eslintrc.json
Mugen87 Dec 10, 2024
6a4309b
Node: Document more modules. (#30100)
Mugen87 Dec 11, 2024
80b7991
TSL: Add `texture_depth_multisampled_2d` for `wgslFn` (#30082)
sunag Dec 11, 2024
a93ab32
TSL: Fix `positionWorld` used in `material.positionNode` and `fragmen…
sunag Dec 11, 2024
a8aaca3
Node: fix types (#30103)
s-rigaud Dec 11, 2024
3c2c930
Line2NodeMaterial: Fix usage of optional nodes. (#30107)
s-rigaud Dec 11, 2024
78edc1c
Node: Document more modules. (#30109)
Mugen87 Dec 12, 2024
234945c
Node: Improve some types (#30110)
s-rigaud Dec 12, 2024
0d57860
TSL: Vertex shader revision (#30108)
sunag Dec 12, 2024
2eff8e9
TSL: Improve fog approach 2 (#30092)
sunag Dec 12, 2024
1a82200
Manual: Improve post processing guide. (#30098)
ChenKuan1110 Dec 12, 2024
346e21d
Addons: Improve JSDocs (#30106)
s-rigaud Dec 12, 2024
b6f7ba2
Improve WebXR layers feature testing (#30112)
toji Dec 13, 2024
43e4150
Node: Document more modules. (#30115)
Mugen87 Dec 13, 2024
250f1d4
Update SkinningNode.js
Mugen87 Dec 13, 2024
fd6528b
Node: Document more modules. (#30117)
Mugen87 Dec 13, 2024
724a8bf
Examples: Add background to `webgpu_pmrem_scene` (#30116)
Spiri0 Dec 13, 2024
ef5be21
Docs: Clean up. (#30121)
Mugen87 Dec 14, 2024
0f523ac
Node: Document more modules. (#30123)
Mugen87 Dec 14, 2024
b82693c
Update github/codeql-action digest to df409f7 (#30126)
renovate[bot] Dec 15, 2024
9b7de0f
Update devDependencies (non-major) (#30127)
renovate[bot] Dec 15, 2024
6a3b0c8
TSL: Export `shadowWorldPosition` (#30129)
Methuselah96 Dec 16, 2024
2376e3c
Update dependency @rollup/plugin-node-resolve to v16 (#30128)
renovate[bot] Dec 16, 2024
b367df1
Node: Document more modules. (#30135)
Mugen87 Dec 16, 2024
1698253
WebGPURenderer: Fix getArrayBufferAsync in WebGPUBackend (#30132)
RenaudRohlinger Dec 16, 2024
d23dffc
Node: Document more modules. (#30137)
Mugen87 Dec 16, 2024
53711ab
Typos (#30119)
s-rigaud Dec 16, 2024
ec02bf7
WebGPURenderer: fix cameraHelper (#30136)
AlaricBaraou Dec 16, 2024
23d9a43
TSL: Overloaded `atan2` to `atan` (#30131)
sunag Dec 16, 2024
d7b6a32
TiledLightsNode: Fix cache-key performance (#30130)
sunag Dec 16, 2024
faa6007
Example: Restore `webgpu_compute_audio` (#30139)
sunag Dec 16, 2024
5f4914a
Typos (#30138)
s-rigaud Dec 17, 2024
42795bf
Node: Document more modules. (#30142)
Mugen87 Dec 17, 2024
c31ff0f
Typos (#30143)
s-rigaud Dec 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
78 changes: 78 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
{
"root": true,
"env": {
"browser": true,
"node": true,
"es2018": true
},
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module"
},
"extends": [
"mdcs",
"plugin:compat/recommended"
],
"plugins": [
"html",
"import"
],
"settings": {
"polyfills": [
"WebGL2RenderingContext"
]
},
"globals": {
"__THREE_DEVTOOLS__": "readonly",
"potpack": "readonly",
"fflate": "readonly",
"Stats": "readonly",
"XRWebGLBinding": "readonly",
"XRWebGLLayer": "readonly",
"GPUShaderStage": "readonly",
"GPUBufferUsage": "readonly",
"GPUTextureUsage": "readonly",
"GPUTexture": "readonly",
"GPUMapMode": "readonly",
"QUnit": "readonly",
"Ammo": "readonly",
"XRRigidTransform": "readonly",
"XRMediaBinding": "readonly",
"CodeMirror": "readonly",
"esprima": "readonly",
"jsonlint": "readonly",
"VideoFrame": "readonly"
},
"rules": {
"no-throw-literal": [
"error"
],
"quotes": [
"error",
"single"
],
"prefer-const": [
"error",
{
"destructuring": "any",
"ignoreReadBeforeAssign": false
}
],
"no-irregular-whitespace": [
"error"
],
"no-duplicate-imports": [
"error"
],
"valid-jsdoc": [
"error",
{
"requireReturn": false,
"requireReturnType": true,
"requireParamDescription": false,
"requireReturnDescription": false,
"requireParamType": true
}
]
}
}
31 changes: 11 additions & 20 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Contribution
## Introduction

It is assumed that you know a little about node.js and git. If not, [here's some help to get started with git](https://help.github.com/en/github/using-git) and [here’s some help to get started with node.js.](https://nodejs.org/en/docs/guides/getting-started-guide/)
It is assumed that you know a little about Node.js and Git. If not, [here's some help to get started with Git](https://help.github.com/en/github/using-git) and [here’s some help to get started with Node.js.](https://nodejs.org/en/docs/guides/getting-started-guide/)

* Install [Node.js](https://nodejs.org/)
* Install [Git](https://git-scm.com/)
Expand All @@ -26,25 +26,20 @@ As per the npm standard, ‘start’ is the place to begin the package.

npm start

This script will start a local server similar to [threejs.org](https://threejs.org/), but instead will be hosted on your local machine. Browse to http://localhost:8080/ to check it out. It also automatically creates the build/three.js’ and ‘build/three.module.js’ scripts anytime there is a change within your three.js directory.
This script will start a local server similar to [threejs.org](https://threejs.org/), but instead will be hosted on your local machine. Browse to https://localhost:8080/ to check it out. It also automatically creates the `build/three.module.js` script anytime there is a change `src` directory.

The next most important script runs all the appropriate testing. The E-2-E testing is intended to be run by github actions.
Next scripts run all the appropriate testing.

Run this command from the root folder to install test dependencies.

npm install --prefix test

And run tests.

npm test
- `npm run test` - Lint testing and unit testing (individually being `npm run lint` and `npm run test-unit`)
- `npm run test-e2e` - E2E testing. This one can take quite a long time and installs ~200 MB Chromium browser - it is primarily intended to be run only by GitHub Actions

The linting is there to keep a consistent code style across all of the code and the testing is there to help catch bugs and check that the code behaves as expected. It is important that neither of these steps comes up with any errors due to your changes.

Many linting errors can be fixed automatically by running
Most linting errors can be fixed automatically by running

npm lint-fix
npm run lint-fix

If you’d like to make a minified version of the build files i.e. ‘build/three.min.js run:
If you’d like to make a build of the source files (e.g. `build/three.module.js`) run:

npm run build

Expand Down Expand Up @@ -72,16 +67,12 @@ When you’ve decided to make changes, start with the following:
* Don't include any build files in your commit.
* Not all new features will need a new example. Simpler features could be incorporated into an existing example. Bigger features may be asked to add an example demonstrating the feature.
* Making changes may require changes to the documentation. To update the docs in other languages, simply copy the English to begin with.
* it's good to also add an example and screenshot for it, for showing how it's used and for end-to-end testing.
* It's good to also add an example and screenshot for it, for showing how it's used and for end-to-end testing.
* If you modify existing code, run relevant examples to check they didn't break and there wasn't performance regress.
* If you add some assets for the examples (models, textures, sounds, etc), make sure they have a proper license allowing for their use here, less restrictive the better. It is unlikely for large assets to be accepted.
* If some issue is relevant to the patch/feature, please mention it with a hash (e.g. #2774) in a commit message to get cross-reference in GitHub.
* If you modify files in `examples/jsm` directory, then don't perform any changes in the `examples/js`, non-module files are auto-generated by running `npm run build-examples`.
* If the end-to-end test failed in Travis and you are sure that all is correct, make a new screenshot with

npm run make-screenshot <example_1_name> ...<example_N_name>

* Once done with a patch/feature do not add more commits to a feature branch
* If the end-to-end test failed and you are sure that all is correct, follow the instructions it outputs.
* Once done with a patch/feature do not add more commits to a feature branch.
* Create separate branches per patch or feature.
* If you make a PR but it is not actually ready to be pulled into the dev branch then please [convert it to a draft PR](https://docs.github.com/en/github/collaborating-with-issues-and-pull-requests/changing-the-stage-of-a-pull-request#converting-a-pull-request-to-a-draft).

Expand Down
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# These are supported funding model platforms

github: [mrdoob, HumanInteractive, donmccurdy]
github: [mrdoob, HumanInteractive, donmccurdy, gkjohnson, WestLangley]
47 changes: 0 additions & 47 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

88 changes: 88 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
name: Bug Report
description: File a reproducible bug or regression.
body:
- type: textarea
id: description
attributes:
label: Description
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
id: repro
attributes:
label: Reproduction steps
description: How do you trigger this bug? Please walk us through it step by step.
value: |
1.
2.
3.
validations:
required: true
- type: textarea
id: code
attributes:
label: Code
value: |
```js
// code goes here
```
validations:
required: true
- type: textarea
id: example
attributes:
label: Live example
value: |
* [jsfiddle-latest-release WebGLRenderer](https://jsfiddle.net/3mrkqyea/)
* [jsfiddle-dev WebGLRenderer](https://jsfiddle.net/gcqx26jv/)
* [jsfiddle-latest-release WebGPURenderer](https://jsfiddle.net/mnqr9oj0/)
* [jsfiddle-dev WebGPURenderer](https://jsfiddle.net/xno7bmw0/)
validations:
required: true
- type: textarea
id: screenshots
attributes:
label: Screenshots
description: If applicable, add screenshots to help explain your problem (drag and drop the image).
validations:
required: false
- type: input
id: version
attributes:
label: Version
description: What version of the library are you using?
placeholder: r
validations:
required: true
- type: dropdown
id: device
attributes:
label: Device
multiple: true
options:
- Desktop
- Mobile
- Headset
- type: dropdown
id: browser
attributes:
label: Browser
multiple: true
options:
- Chrome
- Firefox
- Safari
- Edge
- type: dropdown
id: os
attributes:
label: OS
multiple: true
options:
- Windows
- MacOS
- Linux
- ChromeOS
- Android
- iOS
26 changes: 0 additions & 26 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Feature request
description: Suggest an idea for the project.
body:
- type: textarea
id: description
attributes:
label: Description
description: Is your feature request related to a problem? Please describe.
placeholder: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
validations:
required: true
- type: textarea
id: solution
attributes:
label: Solution
description: Describe the solution you'd like.
placeholder: A clear and concise description of what you want to happen.
validations:
required: true
- type: textarea
id: alternatives
attributes:
label: Alternatives
description: Describe alternatives you've considered.
placeholder: A clear and concise description of any alternative solutions or features you've considered.
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the feature request here.
validations:
required: false
7 changes: 7 additions & 0 deletions .github/codeql-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
paths-ignore:
- "docs/prettify/**/*.*"
- "editor/js/libs/**/*.*"
- "examples/jsm/libs/**/*.*"
- "examples/jsm/loaders/ifc/**/*.*"
- "build/*.*"
- "manual/3rdparty/**/*.*"
23 changes: 23 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"extends": [
"config:base",
":disableDependencyDashboard",
"helpers:pinGitHubActionDigests"
],
"timezone": "Asia/Tokyo",
"schedule": ["after 1am and before 7am every monday"],
"packageRules": [
{
"matchDepTypes": ["devDependencies"],
"matchUpdateTypes": ["patch", "minor", "pin", "digest"],
"groupName": "devDependencies (non-major)",
"automerge": true
},
{
"description": "ESLint v9 requires flat configs, not yet supported by our plugins. See https://github.com/mrdoob/three.js/pull/28354#issuecomment-2106528332",
"matchPackageNames": ["eslint"],
"matchUpdateTypes": ["major"],
"enabled": false
}
]
}
Loading