-
I saw that there's a Depth input in the Render Output node. This got me thinking if I can extract the scene's depth data, but I don't know how. |
Beta Was this translation helpful? Give feedback.
Answered by
pragma37
Oct 16, 2022
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Psi25
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The PrePass node has a Normal Depth output texture, where the fourth channel is the current layer depth.
That texture is read internally in the Mesh MainPass shaders and in Screen shaders, but it's not currently exposed to nodes.
You could add an extra custom input and plug it there so it's available to nodes, or use a custom node function that reads it.