-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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: Depth Texture example #23665
Conversation
const material = new Nodes.MeshBasicNodeMaterial(); | ||
material.colorNode = invert( smoothstep( camera.near, camera.far, negate( positionView.z ) ) ); |
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.
Depth Material Approach
I'm not sure about providing a standalone example with a new depth material. Maybe it's better to focus on @mrdoob How do you feel about this? |
Hmm, I think we can keep this for now. |
Thanks! |
* add webgpu_depth_texture example * use invert() instead of sub()
* add webgpu_depth_texture example * use invert() instead of sub()
Related issue: #23655
Description
WebGPU Depth Texture
https://raw.githack.com/sunag/three.js/dev-rtt-webgpu/examples/webgpu_depth_texture.html
This contribution is funded by Googe via Igalia.