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:
@ -0,0 +1,4 @@
|
||||
float manhattan_distance_2d(vec2 point1, vec2 point2) {
|
||||
vec2 d = point1 - point2;
|
||||
return abs(d.x) + abs(d.y);
|
||||
}
|
Reference in New Issue
Block a user