WebGPURenderer: Backdrop Node - Part 2/3 #26196
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Related issue: #25903
Deph Node
Anyone who has ever created a scene that needed DepthTexture for background elements knows how complex scene management becomes. The Depth Node will help in this project, it is possible to define the distance between objects with a single code line.
Popular effects like the Depth Fade widely used in vegetation, is it possible to do with this API.
Some use cases
Example
The example is pretty simple, but it has the main features for this use case.
In this example, I show how to create a volume area, which would be very complicated to do without the API.
https://raw.githack.com/mrdoob/three.js/dev/examples/webgpu_backdrop_area.html