Skip to content

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!

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