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.
VisualShaderNodeVectorDistance
Inherits: VisualShaderNodeVectorBase < VisualShaderNode < Resource < RefCounted < Object
Returns the distance between two points. To be used within the visual shader graph.
Description
Calculates distance from point represented by vector p0 to vector p1.
Translated to distance(p0, p1) in the shader language.