Why is the depth buffer like this in black?

I’m making a cartoon post-processing material. If I sample World Normal, the edges ok, but some rough surfaces will have lines.

So I want to try sampling scene depth, but only the mountains in the distance of the terrain appear with edge lines.

I open the Depth Buffer in the debug layer to check, and it’s like this, it seems that only the mountains have depth.

this Is my material node

If you have very large far plane of viewport/camera then the values range won’t show the depth nicely. For 1.13 branch we moved to Reversed Z which should show it better.

We have a tutorial hwo to linearlize depth values (into world-units) to have it usable for processing like outlines: HOWTO: Render object outline | Flax Documentation

1 Like

When I multiply the R channel value of Scene Depth by a very large number, such as 8000, the depth map appears… I don’t really know why.