W3cubDocs

/Godot 3.2

VisualShaderNodeVectorDistance

Inherits: VisualShaderNode < Resource < Reference < 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.

© 2014–2020 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.
https://docs.godotengine.org/en/3.2/classes/class_visualshadernodevectordistance.html