Skip to content

feat: ThreeJS 'Compute Particles' with tgpu#1947

Merged
cieplypolar merged 12 commits intofeat/tgpu-threefrom
feat/threejs-compute-particles
Dec 19, 2025
Merged

feat: ThreeJS 'Compute Particles' with tgpu#1947
cieplypolar merged 12 commits intofeat/tgpu-threefrom
feat/threejs-compute-particles

Conversation

@cieplypolar
Copy link
Collaborator

No description provided.

@github-actions
Copy link

github-actions bot commented Dec 2, 2025

pkg.pr.new

packages
Ready to be installed by your favorite package manager ⬇️

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@12149df12bed48d7808227e67bc3e1165b6774fe
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@12149df12bed48d7808227e67bc3e1165b6774fe
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@12149df12bed48d7808227e67bc3e1165b6774fe

benchmark
view benchmark

commit
view commit

@cieplypolar cieplypolar force-pushed the feat/threejs-compute-particles branch 2 times, most recently from fdf2fef to 468d812 Compare December 2, 2025 16:24
@cieplypolar cieplypolar changed the title feat: ThreeJS 'Compute Particles' with tgpu [WIP] feat: ThreeJS 'Compute Particles' with tgpu Dec 2, 2025
@cieplypolar cieplypolar changed the title [WIP] feat: ThreeJS 'Compute Particles' with tgpu feat: ThreeJS 'Compute Particles' with tgpu Dec 2, 2025
@cieplypolar cieplypolar force-pushed the feat/threejs-compute-particles branch from f8c63d0 to 6753bc1 Compare December 9, 2025 17:00
@cieplypolar cieplypolar changed the base branch from fix/threejs-bump to feat/tgpu-three-tweaks December 9, 2025 17:00
@cieplypolar cieplypolar marked this pull request as ready for review December 9, 2025 17:00
Base automatically changed from feat/tgpu-three-tweaks to feat/tgpu-three December 10, 2025 18:26
Copy link
Contributor

@aleksanderkatan aleksanderkatan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Banger 🍡

@cieplypolar cieplypolar merged commit a861927 into feat/tgpu-three Dec 19, 2025
3 checks passed
@cieplypolar cieplypolar deleted the feat/threejs-compute-particles branch December 19, 2025 15:09
iwoplaza added a commit that referenced this pull request Dec 22, 2025
)

* feat: tgpu.comptime, tgpu.rawCodeSnippet and `this` allowed in TypeGPU
shader functions

* Fix tests

* Better docs for rawCodeSnippet

* Docs for comptime

* - Namable comptime - Turned `extensionEnabled` into a comptime function

* Fixes

* Add @typegpu/three package and Three.js integration example (very WIP)

* Update tgpuThree.ts

* Three.js types for example code view

* More tweaks and experiments

* More work

* A bit more work

* More work

* Using @typegpu/noise in Three.js

* Add a new example

* Testing compute in Three.js

* Update examples

* Update typegpu-material.ts

* Update index.ts

* Some more work

* Works again

* TypeGPU compute shaders in TSL!

* A bit of a refactor of the cloth example

* Cleanup 🧹

* Comparing Three and TypeGPU output

* triNoise3D in TypeGPU

* comptime

* Support for 'this' in TypeGPU shader functions

* Update verlet.ts

* feat: Attractors example (#1949)

* Tweaks

* feat: Tweaks to feat/tgpu-three (#1954)

* Some review fixes

* Thumbnails and tags

* Comptime fromTSL

* Update shellless.test.ts

* fix: Calling `toTSL` multiple times (#1974)

* feat: Inform user about type mismatches (#1988)

* Fix renderer resizing when browser zoom

* docs: Cloth example controls (#1986)

* feat: ThreeJS 'Compute Particles' with tgpu (#1947)

* feat: ThreeJS 'Compute Geometry' with tgpu (#1948)

* feat: ThreeJS 'Compute Snow Particles' example in tgpu (#1972)

* fix: @typegpu/three toTSL should have a per-stage namespace (#1994)

---------

Co-authored-by: Iwo Plaza <iwoplaza@gmail.com>
Co-authored-by: Aleksander Katan <56294622+aleksanderkatan@users.noreply.github.com>
Co-authored-by: Rafal Lukosz <93160829+lursz@users.noreply.github.com>
Co-authored-by: Szymon Szulc <103948576+cieplypolar@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants