# Objective
I want to get the visual depth (after view proj matrix stuff) of the
object beneath my cursor.
Even when having a write-back of the depth texture, you would still need
to convert the NDC depth to a logical value.
## Solution
This is done on shader-side by [this
function](
|
||
|---|---|---|
| .. | ||
| camera_driver_node.rs | ||
| camera.rs | ||
| clear_color.rs | ||
| manual_texture_view.rs | ||
| mod.rs | ||
| projection.rs | ||