Skip to content

Conversation

@sunag
Copy link
Collaborator

@sunag sunag commented Apr 12, 2023

Description

I made some modifications to the API so that we could do RTT or Compute at the time of rendering, thus creating a render tree if necessary, more precisely at Node update time, the implementation of which is clearer in the use of Node.updateBefore(), which is called in the process of the WebGPURenderer.renderObject() but before updating the matrices/uniforms. As the shadow is based on the architecture of the Nodes, it is not necessary to modify the core if you want to add a new filter or add a new type of shadow.

https://raw.githack.com/sunag/three.js/dev-webgpu-shadows/examples/webgpu_shadowmap.html

image

@sunag sunag added this to the r152 milestone Apr 12, 2023
@sunag sunag merged commit b1fa158 into mrdoob:dev Apr 13, 2023
@sunag sunag deleted the dev-webgpu-shadows branch April 13, 2023 06:39
@sunag sunag restored the dev-webgpu-shadows branch April 13, 2023 06:39
@mrdoob
Copy link
Owner

mrdoob commented Apr 13, 2023

Looking good! 🔥

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