Skip to content

feat: ThreeJS 'Compute Geometry' with tgpu#1948

Merged
cieplypolar merged 45 commits intofeat/tgpu-threefrom
feat/threejs-torso
Dec 19, 2025
Merged

feat: ThreeJS 'Compute Geometry' with tgpu#1948
cieplypolar merged 45 commits intofeat/tgpu-threefrom
feat/threejs-torso

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@e8673cbfa71e1df0d0197af958be0ed06aee81cd
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@e8673cbfa71e1df0d0197af958be0ed06aee81cd
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@e8673cbfa71e1df0d0197af958be0ed06aee81cd

benchmark
view benchmark

commit
view commit

@cieplypolar cieplypolar force-pushed the feat/threejs-compute-particles branch from f8c63d0 to 6753bc1 Compare December 9, 2025 17:00
@cieplypolar cieplypolar changed the title [WIP] feat: ThreeJS 'Compute Geometry' with tgpu feat: ThreeJS 'Compute Geometry' with tgpu Dec 9, 2025
@cieplypolar cieplypolar marked this pull request as ready for review December 9, 2025 17:20
@cieplypolar cieplypolar force-pushed the feat/threejs-compute-particles branch from 4eef60e to 4e94772 Compare December 10, 2025 22:46
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.

Nice! 🪼🙆‍♂️

Copy link
Contributor

Choose a reason for hiding this comment

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

image

Do we care that the licence is not listed here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I will add it, just in case

@cieplypolar cieplypolar changed the base branch from feat/threejs-compute-particles to feat/tgpu-three December 19, 2025 14:44
@cieplypolar cieplypolar merged commit 48a792b into feat/tgpu-three Dec 19, 2025
3 checks passed
@cieplypolar cieplypolar deleted the feat/threejs-torso 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