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

Maths nodes refactored, Smoothmin and Smoothmax nodes added

This commit is contained in:
Digvijaysinh Gohil
2024-07-03 00:01:09 +05:30
parent 45ddc1f6a2
commit 3cf0e2d38a
14 changed files with 191 additions and 40 deletions

View File

@ -0,0 +1,3 @@
vec3 project_on_plane(vec3 vector, vec3 plane_normal) {
return vector - (plane_normal * (dot(vector, plane_normal) / dot(plane_normal, plane_normal)));
}