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:
3
addons/ShaderLib/Maths/Vector/ProjectOnPlane.gdshaderinc
Normal file
3
addons/ShaderLib/Maths/Vector/ProjectOnPlane.gdshaderinc
Normal 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)));
|
||||
}
|
Reference in New Issue
Block a user