1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-21 04:45:57 +08:00

Manhattan Distance node added

This commit is contained in:
Digvijaysinh Gohil
2024-03-19 19:43:02 +05:30
parent 41f016feca
commit 0d5c68fb1f
5 changed files with 120 additions and 0 deletions

View File

@ -0,0 +1,4 @@
float manhattan_distance_2d(vec2 point1, vec2 point2) {
vec2 d = point1 - point2;
return abs(d.x) + abs(d.y);
}