mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 20:35:57 +08:00
4 lines
124 B
Plaintext
4 lines
124 B
Plaintext
float manhattan_distance_3d(vec3 point1, vec3 point2) {
|
|
vec3 d = point1 - point2;
|
|
return abs(d.x) + abs(d.y) + abs(d.z);
|
|
} |