Skip to content

docs: Cloth example controls#1986

Merged
lursz merged 5 commits intofeat/tgpu-threefrom
feat/tgpu-three-controls
Dec 18, 2025
Merged

docs: Cloth example controls#1986
lursz merged 5 commits intofeat/tgpu-threefrom
feat/tgpu-three-controls

Conversation

@lursz
Copy link
Contributor

@lursz lursz commented Dec 16, 2025

Added controls for TheeJS' Cloth example

@lursz lursz requested a review from iwoplaza December 16, 2025 14:23
@github-actions
Copy link

github-actions bot commented Dec 16, 2025

pkg.pr.new

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

https://pkg.pr.new/software-mansion/TypeGPU/typegpu@003ad28fb6aaff4324d0acc493aecf46c393f3b2
https://pkg.pr.new/software-mansion/TypeGPU/@typegpu/noise@003ad28fb6aaff4324d0acc493aecf46c393f3b2
https://pkg.pr.new/software-mansion/TypeGPU/unplugin-typegpu@003ad28fb6aaff4324d0acc493aecf46c393f3b2

benchmark
view benchmark

commit
view commit

@lursz lursz changed the title Docs: Cloth example controls docs: Cloth example controls Dec 16, 2025
Copy link
Collaborator

@iwoplaza iwoplaza left a comment

Choose a reason for hiding this comment

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

🚩🐂

@lursz
Copy link
Contributor Author

lursz commented Dec 18, 2025

CI fails because of:

packages/typegpu-three/src/typegpu-node.ts:263:73 lint/suspicious/noExplicitAny 

  ⚠ Unexpected any. Specify a different type.
  
    261 │   ) => TSLAccessor<T, TNode>)
    262 │ >((node, type) => {
  > 263 │   const tgpuType = d.isData(type) ? type : (type as (length: number) => any)(0);
        │                                                                         ^^^
    264 │ 
    265 │   // In THREE, the type of array buffers equals to the type of the element.

This PR has nothing to do with that file, so I will be merging anyway

@lursz lursz merged commit 16d0188 into feat/tgpu-three Dec 18, 2025
2 of 3 checks passed
@lursz lursz deleted the feat/tgpu-three-controls branch December 18, 2025 15:18
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.

2 participants