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.
VisualShaderNodeScreenUVToSDF
Inherits: VisualShaderNode < Resource < RefCounted < Object
A function to convert screen UV to an SDF (signed-distance field), to be used within the visual shader graph.
Description
Translates to screen_uv_to_sdf(uv) in the shader language. If the UV port isn't connected, SCREEN_UV is used instead.