Work in progress

Godot documentation is being updated to reflect the latest changes in version 4.0. Some documentation pages may still state outdated information. This banner will tell you if you're reading one of such pages.

The contents of this page are up to date. If you can still find outdated information, please open an issue.

VisualShaderNodeLinearSceneDepth

Inherits: VisualShaderNode < Resource < RefCounted < Object

A visual shader node that returns the depth value of the DEPTH_TEXTURE node in a linear space.

Description

This node can be used in fragment shaders.