Outdated documentation
This documentation page refers to Godot
4.3,
and may be outdated or incorrect.
Additionally, this engine version is
no longer supported.
Check this page in the stable branch for the latest additions and corrections.
VisualShaderNodeWorldPositionFromDepth
Inherits: VisualShaderNode < Resource < RefCounted < Object
A visual shader node that calculates the position of the pixel in world space using the depth texture.
Description
The WorldPositionFromDepth node reconstructs the depth position of the pixel in world space. This can be used to obtain world space UVs for projection mapping like Caustics.