I’m trying to render the scene depth to a render target. I have this working but the depth resolution is poor, see graph below (scene is a sphere, so should be smooth curve).
precision get worse with range. I need this to work at long range with small field of view.
I have compiled the engine with the “DEPTH_32_BIT_CONVERSION=1” define and this reduced z fighting issues but made no difference to final result rendered in render target.
Any help much appreciated
2m sphere at ~70m range
I’m using SceneCapture2D and the following postprocess material (replacing tonemapper)
Render target settings