Skip to content

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

Merged
cieplypolar merged 74 commits intofeat/tgpu-threefrom
feat/threejs-xmas-tree
Dec 19, 2025
Merged

feat: ThreeJS 'Compute Snow Particles' example in tgpu#1972
cieplypolar merged 74 commits intofeat/tgpu-threefrom
feat/threejs-xmas-tree

Conversation

@cieplypolar
Copy link
Copy Markdown
Collaborator

@cieplypolar cieplypolar commented Dec 11, 2025

Includes temporary fix for creating accessors of TSL textures.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Dec 11, 2025

pkg.pr.new

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

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@26a736fd0d22cdc7e133a4aaba12e99cf2edc630
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@26a736fd0d22cdc7e133a4aaba12e99cf2edc630
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@26a736fd0d22cdc7e133a4aaba12e99cf2edc630

benchmark
view benchmark

commit
view commit

@cieplypolar cieplypolar marked this pull request as draft December 12, 2025 00:16
@cieplypolar cieplypolar marked this pull request as ready for review December 12, 2025 00:36
Copy link
Copy Markdown
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.

Ho ho ho! 🌴

Comment thread apps/typegpu-docs/src/examples/threejs/compute-particles-snow/index.html Outdated
@cieplypolar cieplypolar changed the base branch from feat/threejs-torso to feat/tgpu-three December 19, 2025 14:59
@cieplypolar cieplypolar merged commit 3eaa5db into feat/tgpu-three Dec 19, 2025
3 checks passed
@cieplypolar cieplypolar deleted the feat/threejs-xmas-tree 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