Distant HorizonsDH
Distant Horizons2y ago
3 replies
Gaddy

Shader Development Documentation, depth handling

I'm making a new shader where the depth of blocks is used for edge detection. Am having trouble finding documentation for what I can use to make a compatible shader. Do I need to convert depth some how? Is there documentation for shader developers to look through?

In one example I saw, a dev would discard all fragments with a depth != 1, which makes it seem like depth is handled differently in dh than in vanilla.
Screenshot_2024-09-11_170538.png
Screenshot_2024-09-11_172535.png
Was this page helpful?