Nodes > Functions > Util > Position From Depth

Converts a depth value to a position.
Inputs
| Name | Type | Description |
|---|---|---|
| Depth | float | Input depth to be converted |
| UV Coords | float | Screen space UV coordinates for the x and y axes |
| Near Plane | float | Camera near clip distance. Used with Far Plane to linearize depth when Use Custom Camera is enabled |
| Far Plane | float | Camera far clip distance. Used with Near Plane to linearize depth when Use Custom Camera is enabled |
| FOV (Radians) | float | Field of view in radians. Used to build the projection terms when Use Custom Camera is enabled |
| Aspect Ratio | float | Width / height of the view. Used with FOV to build the projection terms when Use Custom Camera is enabled |
| View Inverse | matrix | Inverse view matrix |
Outputs
| Name | Type | Description |
|---|---|---|
| Position | float | The converted output position |
Properties
| Name | Type | Description |
|---|---|---|
| Position Space | dropdown | The space of the position value |
| Coords | dropdown | Choose what source to use for the UV Coordinates. If "UV Coord 0" or "UV1 Coord 1" are selected, the respective surface UV set will be used. If "Custom" is selected, the UV Coords input will be exposed and used instead |
| Use Custom Camera | bool | Enables custom camera properties. When checked, the node will use these properties to transform the depth from screen space to world/view space |
Was this page helpful?