-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
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
WebGPU: Compute Particles #26655
Conversation
Very nice! |
@@ -39,7 +39,7 @@ class StackNode extends Node { | |||
|
|||
if( boolNode, method ) { | |||
|
|||
const methodNode = shader( method ); | |||
const methodNode = new ShaderNode( method ); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
Description
The following example shows how easy and powerful it is to create particles using
TSL
andWebGPURenderer
.https://raw.githack.com/mrdoob/three.js/dev/examples/webgpu_compute_particles.html