Is your feature request related to a problem? Please describe.
Sometimes, the depth buffer accuracy is not good enough to avoid depth artifacts.
In the test below, the white plane height is 0.00001 unit above the red one.
depth_accuracy.glb.zip
Describe the solution you'd like
The depth range accuracy can be improved in two different ways.
- Clip each actor bounding box with the camera frustum to narrow the near/far plane
- Use the reverse-z depth buffer to improve accuracy at far distances
Additional context
This also make the depth rendering feature unusable when the grid is enabled.
See https://discord.com/channels/1046005690809978911/1457402234261475348/1487826720089313435
Is your feature request related to a problem? Please describe.
Sometimes, the depth buffer accuracy is not good enough to avoid depth artifacts.
In the test below, the white plane height is
0.00001unit above the red one.depth_accuracy.glb.zip
Describe the solution you'd like
The depth range accuracy can be improved in two different ways.
Additional context
This also make the depth rendering feature unusable when the grid is enabled.
See https://discord.com/channels/1046005690809978911/1457402234261475348/1487826720089313435