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

WebGPU: Compute Particles #26655

Merged
merged 9 commits into from
Aug 29, 2023
Merged

WebGPU: Compute Particles #26655

merged 9 commits into from
Aug 29, 2023

Conversation

sunag
Copy link
Collaborator

@sunag sunag commented Aug 27, 2023

Description

The following example shows how easy and powerful it is to create particles using TSL and WebGPURenderer.

https://raw.githack.com/mrdoob/three.js/dev/examples/webgpu_compute_particles.html

image

@sunag sunag added this to the r156 milestone Aug 27, 2023
This was referenced Aug 28, 2023
@sunag sunag merged commit 7050247 into mrdoob:dev Aug 29, 2023
@sunag sunag deleted the dev-compute-particles branch August 29, 2023 02:10
@mrdoob
Copy link
Owner

mrdoob commented Aug 31, 2023

Very nice!

@@ -39,7 +39,7 @@ class StackNode extends Node {

if( boolNode, method ) {

const methodNode = shader( method );
const methodNode = new ShaderNode( method );
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we change this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

shader was deprecated, I think that soon ShaderNode will be replaced by TSL function tslFn, but for this we need to create ShaderNodeCall, otherwise the function is called without builder and stack parameters for some cases.

@sunag sunag mentioned this pull request Oct 25, 2023
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