Up to date

This page is up to date for Godot 4.2. If you still find outdated information, please open an issue.

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.