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 3,337 commits into
base: dev
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
3337 commits
Select commit Hold shift + click to select a range
ff08e10
cleanup: How-to-use-post-processing.html (#28168)
atul-mourya Apr 20, 2024
812cf86
make PMREM blur order consistent (#28166)
elalish Apr 20, 2024
c5dcab6
NodeMaterial: Remove `WebGLNodeBuilder` (#28167)
sunag Apr 20, 2024
349c487
RenderTarget: Add `resolveDepthBuffer`. (#28170)
Mugen87 Apr 20, 2024
46e25b0
Examples: use FullScreenQuad for `webgl_postprocessing_crossfade.html…
linbingquan Apr 21, 2024
e462f0e
Examples: add resize event for `webgl_postprocessing_crossfade.html` …
linbingquan Apr 21, 2024
d1078e7
Nodes: remove redundant code (#28173)
aardgoose Apr 21, 2024
325265a
Update actions/upload-artifact digest to 1746f4a (#28175)
renovate[bot] Apr 21, 2024
d0cc387
Update github/codeql-action digest to c7f9125 (#28176)
renovate[bot] Apr 21, 2024
ea5dec5
Update devDependencies (non-major) (#28178)
renovate[bot] Apr 21, 2024
4d2add2
WebGPURenderer: PMREMGenerator update (#28177)
sunag Apr 21, 2024
09f9fff
WebGPURenderer: PMREMGenerator use `textureGrad` (#28181)
sunag Apr 22, 2024
084aa1f
Editor: clean up (#28183)
linbingquan Apr 22, 2024
c817054
FileLoader: Evaluate `X-File-Size` header before `Content-Length`. (#…
Mugen87 Apr 22, 2024
31b2f94
Nodes: clean up (#28185)
linbingquan Apr 22, 2024
4d6fa0d
WebGLRenderer: remove redundant code (#28186)
vitch Apr 22, 2024
81b782a
WebGPURenderer: Support `specularColorMap` (#28155)
susiwen8 Apr 22, 2024
0de958e
Object3D: add generator-based traversal methods (#28053)
HoloTheDrunk Apr 23, 2024
1cacd91
WebGLShadowMap: Clean up (#28194)
linbingquan Apr 23, 2024
4993e3a
WebGPUBackend: Allows the device to be created externally (#28192)
chirsz-ever Apr 23, 2024
1780cc5
WebGPURenderer: fix `D_BlinnPhong` (#28199)
susiwen8 Apr 23, 2024
b7b70a8
Examples: Add transition effect. (#28174)
linbingquan Apr 23, 2024
50d4f74
WebGPURenderer: ShadowMaterial (#28200)
sunag Apr 23, 2024
c5c42fb
Examples: Fix `monaco-editor` (#28201)
sunag Apr 23, 2024
7376a8d
Editor: use importmap for `app/index.html` (#28195)
linbingquan Apr 23, 2024
335ba6d
WebGLRenderer: Don't support double-sided, transmissive objects with …
Mugen87 Apr 23, 2024
5493cfa
WebGPURenderer: Allow specifying texture index for MRT in `readRender…
Spiri0 Apr 23, 2024
1395e9d
Editor: Fix glTF assets with external KTX2 textures. (#28206)
Mugen87 Apr 24, 2024
bf26792
Examples: Rename webgl_postprocessing_crossfade to webgl_postprocessi…
linbingquan Apr 24, 2024
70c132c
WebGPUBackend: Remove unnecessary use of GPUAdapter (#28208)
chirsz-ever Apr 24, 2024
0adce30
JoltPhysics: Update to latest version.
mrdoob Apr 24, 2024
5cfc5db
Playground: Use devicePixelRatio.
mrdoob Apr 25, 2024
7c449d8
Examples: Fixed webgpu_loader_materialx.
mrdoob Apr 25, 2024
f869162
Examples: Clean up. (#28213)
linbingquan Apr 25, 2024
6008f61
Revert "WebGPUBackend: Remove unnecessary use of GPUAdapter (#28208)"…
Mugen87 Apr 25, 2024
328a460
WebGPUBackend: Remove unnecessary use of GPUAdapter (2) (#28217)
sunag Apr 25, 2024
2182dc3
Examples: Added `webgpu_multiple_rendertargets_readback` (#28211)
Spiri0 Apr 25, 2024
20019c3
Wait for device initialization in hasFeatureAsync() (#28218)
sunag Apr 25, 2024
182c0fc
Updated builds.
mrdoob Apr 25, 2024
721ad38
r164
mrdoob Apr 25, 2024
e408f88
Examples: remove unused render pass for webgpu mrt readback (#28219)
aardgoose Apr 25, 2024
360c0e9
Examples: Upodated webgpu_tsl_editor screenshot.
mrdoob Apr 25, 2024
b175d49
Playground: Fix `PreviewEditor` (#28223)
sunag Apr 26, 2024
5dcad54
Update GLTFExporter.js (#28222)
RemusMar Apr 26, 2024
a2e9ee8
r164 (bis)
mrdoob Apr 26, 2024
a6130f8
Update constants.js
Mugen87 Apr 26, 2024
258c28f
Raycaster: add Raycaster.stopTraversal() (#27709)
AlaricBaraou Apr 27, 2024
16128f5
void stream (#28216)
ycw Apr 27, 2024
62843d5
Update actions/checkout digest to 0ad4b8f (#28228)
renovate[bot] Apr 29, 2024
3911629
Update actions/upload-artifact digest to 6546280 (#28229)
renovate[bot] Apr 29, 2024
0544ddd
Update github/codeql-action digest to d39d31e (#28230)
renovate[bot] Apr 29, 2024
1f40200
Update devDependencies (non-major) (#28231)
renovate[bot] Apr 29, 2024
15963cd
GLTFLoader: Assign extras to texture. (#28226)
harrycollin Apr 29, 2024
aedb9c7
Docs: Improve `SceneUtils` page. (#28234)
Mugen87 Apr 29, 2024
b8d79b8
Examples: More usage of `setAnimationLoop()`. (#28236)
Mugen87 Apr 29, 2024
d0440bb
Examples: Update examples to use WebGLPathTracer and three-gpu-pathte…
gkjohnson Apr 29, 2024
2391bd9
Editor: Update path tracer to latest version (#28239)
gkjohnson Apr 30, 2024
6144493
Examples: More usage of `setAnimationLoop()`. (#28241)
Mugen87 Apr 30, 2024
ae5b646
readonly (#28243)
ycw Apr 30, 2024
d544cd2
set min-width (#28244)
ycw Apr 30, 2024
b8198a7
Use warnOnce to report unsupported extensions (#28242)
vanruesc Apr 30, 2024
32d19eb
Nodes: implement displacement map for materials (#28246)
aardgoose May 1, 2024
6d90513
Examples: Fix WebGPU logarithmic detph buffer demo. (#28249)
Mugen87 May 1, 2024
98c070e
Examples: More usage of `setAnimationLoop()`. (#28250)
Mugen87 May 1, 2024
5a3b00a
Make TransformControls events more coherent (#28256)
s-rigaud May 2, 2024
9287a98
fix unreadable text in viewport (#28253)
ycw May 2, 2024
5a6eb7a
clean (#28251)
ycw May 2, 2024
2802562
Editor: Fixed outliner's low contrast issue in dark theme (#28248)
ycw May 2, 2024
51da0d5
fmt units (#28245)
ycw May 2, 2024
01bc290
init ui in user preferred lang on 1st run (#28254)
ycw May 2, 2024
641d57f
Examples: More usage of `setAnimationLoop()`. (#28257)
Mugen87 May 2, 2024
f1ba3c4
Update README.md
Mugen87 May 2, 2024
697a873
Update README.md
Mugen87 May 2, 2024
678c80c
lint fix (#28261)
ycw May 3, 2024
f2766a0
WebGPURenderer: MeshMatcapNodeMaterial (#28259)
aardgoose May 3, 2024
f91fe5f
Editor: Fixed non-localized prompt messages (#28260)
ycw May 3, 2024
a980f81
no pollute prototype (#28262)
ycw May 3, 2024
a167d8c
Docs: Improve `Creating a scene` guide. (#28269)
Mugen87 May 3, 2024
ed211d8
add eslintrc (#28271)
ycw May 3, 2024
494173b
WebGPURenderer: Reuse `MatcapUVNode` in `MeshMatcapNodeMaterial` (#28…
sunag May 3, 2024
5a6c9e1
WebGPURenderer: update sampler bindings on texture change (#28268)
aardgoose May 3, 2024
cc774f1
WebGPURenderer: MeshToonNodeMaterial (#28235)
aardgoose May 3, 2024
83a058b
fix mismatch .type (#28276)
ycw May 4, 2024
b98f98a
support updating only dirty `CompressedArrayTexture` layers (#27972)
HunterLarco May 4, 2024
e23a51e
Updated builds.
Mugen87 May 4, 2024
1784e50
Editor: use FullScreenQuad for UITexture (#28273)
linbingquan May 4, 2024
6990d5f
Editor: Fixed non-localized history entries (#28275)
ycw May 4, 2024
39d6420
update pathtracer to v0.0.22 (#28279)
gkjohnson May 4, 2024
3f53946
bump pathtracer mior -> 0.0.22 (#28280)
ycw May 4, 2024
e1e2a22
WebGPURenderer: Don't share normalViewMatrix between render passes (#…
aardgoose May 6, 2024
86f17e2
add translation of renderTime (#28294)
ycw May 6, 2024
9e25ee5
Update dependency rollup to v4.17.2 (#28286)
renovate[bot] May 6, 2024
ac303ab
outliner insync w. object props and scripts (#28270)
ycw May 6, 2024
7604fee
Update ci.yml
Mugen87 May 6, 2024
79c3490
LoaderUtils: Deprecate `decodeText()`. (#28278)
ycw May 6, 2024
f17e262
Editor: Fixed ghost viewport camera (#28277)
ycw May 6, 2024
a638cdc
Update ci.yml
Mugen87 May 6, 2024
8ac3622
Update ci.yml
Mugen87 May 6, 2024
1289401
viewport camera insync w. SCENE (#28297)
ycw May 6, 2024
d3f5c01
set cursor to not-allowed for inactive options (#28298)
ycw May 6, 2024
153cc13
updates value when calling setUnit (#28299)
ycw May 7, 2024
37e1cb5
Update ci.yml
Mugen87 May 7, 2024
bff37d7
improve KeyframeTrack and subtype docs (#28288)
trusktr May 7, 2024
7a02475
WebGLRenderer: Add "readRenderTargetPixelsAsync" function (#28291)
gkjohnson May 7, 2024
3bc0cc7
WebGLRenderer: Enable subframe upload in copyTextureToTexture, align …
gkjohnson May 7, 2024
c3741d2
WebGLRenderer: Add initRenderTarget function (#28285)
gkjohnson May 7, 2024
f1fe30d
Docs: Clean up. (#28307)
Mugen87 May 7, 2024
c78c003
no keyCode (#28304)
ycw May 7, 2024
58c13e6
no createEvent (#28305)
ycw May 7, 2024
65feb79
no substr (#28303)
ycw May 7, 2024
64b0a7c
Add initRenderTarget docs (#28308)
gkjohnson May 7, 2024
6d53d23
env: insync w. bkg + recoverable from history (#28300)
ycw May 7, 2024
0e01940
Update WebGLRenderer.js
Mugen87 May 7, 2024
241a542
Editor: Fixed camera name is always 'Camera' when recovering from ind…
ycw May 7, 2024
72d10f8
Editor: Added submenu navigation (#28311)
ycw May 7, 2024
9f81b72
Editor: Improved submenu look.
mrdoob May 7, 2024
cc9a249
Editor: Simplified File/Export.
mrdoob May 7, 2024
c857c1e
Editor: Cleaned up Add / Mesh
mrdoob May 7, 2024
cf29a58
Editor: Added Add / Light submenu.
mrdoob May 7, 2024
3468145
Editor: Menubar.Add clean up.
mrdoob May 7, 2024
65c4c27
Editor: Fixed menubar/add/light japanese.
mrdoob May 8, 2024
c5ae348
Editor: Added Add / Camera submenu.
mrdoob May 8, 2024
b2e1389
Editor: Clean up.
mrdoob May 8, 2024
97fcd3c
Editor: Improved menu box-shadow.
mrdoob May 8, 2024
db4f94b
ViewHelper: Simplified and prettified. (#28312)
mrdoob May 8, 2024
885c2db
Editor: Fixed assets lost when importing zipped OBJ/MTL (#28292)
ycw May 8, 2024
ef8518f
translate submenu title zh (#28316)
ycw May 8, 2024
7f8624f
update gizmo immediately (#28317)
ycw May 8, 2024
232b4ea
await fromJSON complete (#28318)
ycw May 8, 2024
a6fba0f
WebGPURenderer: copyTextureToTexture subframe upload and new API (#28…
RenaudRohlinger May 8, 2024
2ab4c88
WebGPURenderer: Fix SampledTexture not correctly bound (#28289)
RenaudRohlinger May 8, 2024
a131775
Editor: Added supported file formats to import's file browser.
mrdoob May 9, 2024
94da2af
Editor: Hides irrelevant tabs for better ux (#28287)
ycw May 9, 2024
fc2b4a4
CI: Next try fixing E2E. (#28323)
Mugen87 May 9, 2024
b8c4dce
Detect MMD model extension from file content (#28266)
YusakuNo1 May 9, 2024
66a31ae
CSS2DObject and CSS3DObject visibility needs to consider whether ance…
lafflan May 9, 2024
774fced
Editor: Adds New Project submenu (#28325)
ycw May 9, 2024
a2f0682
WebGLRenderer: Update `copyFramebufferToTexture` function signature (…
RenaudRohlinger May 10, 2024
a13bb05
CSS2DRenderer: Just traverse visible object (#28330)
lafflan May 10, 2024
4ec57f5
initialize Edit>Undo/Redno once on editor start (#28332)
ycw May 10, 2024
2bb030b
export setMaterialRangeCommand (#28338)
ycw May 12, 2024
12db963
Editor: set filename for svg (#28340)
linbingquan May 12, 2024
c372144
Update dependency puppeteer to v22.8.0 (#28353)
renovate[bot] May 12, 2024
6acee15
TSL: Adding `toType` conversion (#28344)
sunag May 13, 2024
db0a63d
WebGPURenderer: NodeMaterial extends Material (#28313)
sunag May 13, 2024
067d385
chore(lint): Add eslint to renovate bot's denylist. (#28356)
donmccurdy May 13, 2024
7c50f30
missing export texturePass (#28359)
RenaudRohlinger May 13, 2024
6e81256
Pin actions/upload-artifact action to 6546280 (#28349)
renovate[bot] May 13, 2024
db047d1
recovers camera with UUID (#28337)
ycw May 13, 2024
db10722
set higher z-index for menu options (#28352)
ycw May 13, 2024
86a4d25
bind lexical this for this.update (#28357)
ycw May 13, 2024
eea543b
Update github/codeql-action digest to ccf74c9 (#28350)
renovate[bot] May 13, 2024
285753a
serialize cached oldGeometry (#28361)
ycw May 13, 2024
ae7ccbf
Editor: Exposed supported formats in Loader.js; (#28324)
ycw May 13, 2024
a08c2ed
no hardcoded list (#28364)
ycw May 13, 2024
c52eebb
DepthTexture: Use ES6 default parameters. (#28367)
linbingquan May 13, 2024
cb1464c
to fs (#28221)
ycw May 13, 2024
032cb77
file.name, not filename (#28368)
ycw May 13, 2024
8c5a7ce
Editor: remove useless service worker asset (#28371)
linbingquan May 14, 2024
2b343ef
Editor: remove useless question mark (#28374)
linbingquan May 14, 2024
0f4df91
Change default splineTexture filtering to Linear for smoother path fo…
manthrax May 14, 2024
d7d82ed
WebGPURenderer: update viewport node on RENDER (#28370)
aardgoose May 14, 2024
7e74aa5
Editor: update Sidebar.Geometry.ExtrudeGeometry.js (#28373)
linbingquan May 14, 2024
01aa489
ldraw extension is mpd, not mdp (#28381)
ycw May 14, 2024
c5a6289
fix typo: project, not porject (#28384)
ycw May 14, 2024
f682d5b
accepts onerror callback when parse (#28382)
ycw May 14, 2024
148f9b1
Examples: Remove need for manually assigning Line2 material resolutio…
gkjohnson May 14, 2024
362e4dc
propagate onerror (#28383)
ycw May 14, 2024
b85a398
CurveModifier: Switch to half float. (#28377)
Mugen87 May 15, 2024
99135e8
Editor: Added Save and Open (#28351)
ycw May 15, 2024
ce4536a
USDZExporter: Allow to pass {includeAnchoringProperties: false} as op…
vincentfretin May 15, 2024
b3e3724
Editor: Avoid `SetSceneCommnd` when importing file (#28339)
ycw May 15, 2024
097d959
E2E: Adding `webgpu_texturegrad` to exception list. (#28385)
Mugen87 May 15, 2024
01525dd
WebGLRenderer: Simplify morph target code. (#28388)
Mugen87 May 15, 2024
efe18d1
Updated builds.
mrdoob May 16, 2024
2e1b7be
upgrade tween.module.js to 23.1.2 (#28391)
linbingquan May 16, 2024
a12adba
Editor: Remove `accept` field in file importer. (#28396)
Mugen87 May 16, 2024
de367cb
CSS2D/3DRenderer: Make the code more reasonable. (#28393)
lafflan May 16, 2024
3b28707
BatchedMesh: add getColorAt and setColorAt (#28255)
Kikedao May 17, 2024
8f5d9e7
WebGPURenderer: Revert #28289 (#28402)
RenaudRohlinger May 17, 2024
1a89bb5
CI: Remove merge command. (#28403)
Mugen87 May 17, 2024
9b64898
Reverted #28324.
mrdoob May 17, 2024
229120b
Nodes: AttributeNode `.defaultNode` as `defaultValue` (#28406)
sunag May 17, 2024
f127bdd
Nodes: `VaryingNode` support for `setup()` (#28407)
sunag May 17, 2024
5f21c50
Nodes: NormalNode - Improve tree shaking using TSL (#28408)
sunag May 17, 2024
013e93d
TSL: Fix `tslFn()` output type called before build (#28409)
sunag May 17, 2024
b392786
Editor: Fix serialization of commands. (#28405)
Mugen87 May 17, 2024
cb49101
TSL: `TangentNode` and `BitangentNode` - Improve tree shaking using T…
sunag May 17, 2024
cb24e42
visualize resiszer (#28264)
ycw May 17, 2024
bac3cc7
BatchedMesh: fix radix sort stability (#28401)
gkjohnson May 18, 2024
6955746
update pathtracer camera on resize (#28412)
ycw May 18, 2024
a379e9a
Editor: Fixed script editor title out-of-sync (#28413)
ycw May 18, 2024
0dee424
colorTexture is optional, account for this (#28417)
aardgoose May 18, 2024
d6c3bcc
BatchedMesh: default setColorAt to white (#28416)
gkjohnson May 18, 2024
b3538a3
TSL: CameraNode - Move to TSL approach (#28422)
sunag May 18, 2024
a49326c
Examples: Fix argument passed to copyTextureToTexture (#28419)
Methuselah96 May 19, 2024
016bdb5
SortUtils: fix termination condition & enforce unsigned value (#28411)
sciecode May 19, 2024
b296bb1
submenu-title ignores active state (#28424)
ycw May 19, 2024
6ac1398
Update dependency puppeteer to v22.9.0 (#28430)
renovate[bot] May 19, 2024
79e7f87
TSL: Introduce `modelWorldMatrixInverse` (#28433)
sunag May 20, 2024
312b7ee
export json honors material array (#28431)
ycw May 20, 2024
a620f3f
updates aspect ratio for all perspective cameras (#28425)
ycw May 20, 2024
6651acf
makes all shadings honor viewport camera (#28426)
ycw May 20, 2024
114f0ad
TSL: Node - Introduce `getElementType()` (#28437)
sunag May 20, 2024
ad0e26e
FBXLoader: Fixed morph attributes to match base geometry length (#28397)
catalin-enache May 20, 2024
2de0ee4
Remove the query upon completion (#28428)
Nmzik May 20, 2024
aa65ec2
Update github/codeql-action digest to b7cec75 (#28429)
renovate[bot] May 20, 2024
6208714
WebGLRenderer: Fix incorrect background color space when setting scen…
gkjohnson May 20, 2024
5d37af1
some cleanup (#28442)
RenaudRohlinger May 20, 2024
7a2ccef
WebGPURenderer: Introduce `dispersion` (#28439)
sunag May 20, 2024
8d1ea27
Editor: Fix viewport camera resize. (#28443)
Mugen87 May 20, 2024
eaede05
Document `InstancedMesh` multi-material support. (#28415)
finnbear May 20, 2024
6be05e4
WebGLRenderer: Ensure correct clear after transmission. (#28445)
Mugen87 May 20, 2024
2e7e9d4
script title honors material name when editing shaders (#28444)
ycw May 21, 2024
d34df93
WebGLBackground: Make sure buffers are writable before clear. (#28446)
Mugen87 May 21, 2024
64a25dd
added realistic shading support for image rendering (#28448)
ycw May 21, 2024
c985826
add appearance submenu (#28421)
ycw May 21, 2024
a65fbf7
WebGLRenderer: Remove redundant clear in transmission pass. (#28447)
Mugen87 May 21, 2024
989e89f
Updated builds.
Mugen87 May 21, 2024
b38ef16
WebGPURenderer: support using 3d textures in shaders with texture3d()…
aardgoose May 21, 2024
1164bf1
WebGPURenderer: Fix shadow layers (#28451)
sunag May 22, 2024
687a4ca
fix: Make the render background get the correct Alpha (#28459)
zhaocaho May 22, 2024
02ed248
BatchedMesh: Add support for Instanced rendering with sorting, frustu…
gkjohnson May 22, 2024
4686d48
shows pathtracer samples in viewport info (#28432)
ycw May 22, 2024
1cc0bfe
Editor: Clean up plural code.
mrdoob May 22, 2024
464170a
Editor: Clean up.
mrdoob May 22, 2024
496acf9
Revert "BatchedMesh: Add support for Instanced rendering with sorting…
gkjohnson May 22, 2024
bb47c32
DepthTexture: Update depth + stencil textures to work with multi samp…
gkjohnson May 22, 2024
661587a
Editor: Menubar.File clean up.
mrdoob May 23, 2024
68ac3bf
Editor: Menubar.View clean up.
mrdoob May 23, 2024
66726cc
Updated builds.
mrdoob May 23, 2024
10d442f
Editor: Prettified shortcuts. (#28466)
mrdoob May 23, 2024
6c8b877
Editor: Dark-mode shortcuts.
mrdoob May 23, 2024
b4ac236
Editor: Added translation for script title (#28471)
ycw May 23, 2024
0e69e28
added translation of samplecount (#28470)
ycw May 23, 2024
2f55b35
adds translation for helpers (#28473)
ycw May 23, 2024
82b78e7
WebGPURenderer: RenderBundle (#28347)
RenaudRohlinger May 23, 2024
d2e8b75
no pointer events for shortcut keys (#28472)
ycw May 24, 2024
b846f12
TSL: NodeKeywords - Cleanup (#28476)
Methuselah96 May 24, 2024
610cf0b
Editor: Fixed sidebar glitch via h scrollable (#28467)
ycw May 24, 2024
66afee9
remove deprecated method (#28481)
aardgoose May 24, 2024
9e00010
#28440 Fixed BufferGeometryUtils.mergeVertices to handle morphAttribu…
catalin-enache May 24, 2024
bd11031
Update WebGLRenderer.html (#28478)
sundaramseth May 24, 2024
629f8a0
WebGLRenderer: Remove deprecated WebGLRenderer.useLegacyLights (#28482)
aardgoose May 24, 2024
87cc614
Updated builds.
Mugen87 May 24, 2024
25e3016
export texture3D (#28484)
RenaudRohlinger May 24, 2024
0f91e50
add byte, short, int ushort uint formats (#28483)
RenaudRohlinger May 24, 2024
5f3d176
samples, not sample count (#28486)
ycw May 24, 2024
0bc990f
scrollbar bg = panel bg (#28479)
ycw May 24, 2024
6557739
adds user data input (#28489)
ycw May 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
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.
62 changes: 62 additions & 0 deletions .eslintrc.json
@@ -0,0 +1,62 @@
{
"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
}
]
}
}
31 changes: 11 additions & 20 deletions .github/CONTRIBUTING.md
@@ -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
@@ -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.

86 changes: 86 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
@@ -0,0 +1,86 @@
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](https://jsfiddle.net/g3atw6k5/)
* [jsfiddle-dev](https://jsfiddle.net/hjqw94c5/)
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
@@ -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
@@ -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
@@ -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
}
]
}