mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 04:15:58 +08:00
Maths nodes refactored, Smoothmin and Smoothmax nodes added
This commit is contained in:
7
addons/ShaderLib/Maths/Vector/Project.gdshaderinc
Normal file
7
addons/ShaderLib/Maths/Vector/Project.gdshaderinc
Normal file
@ -0,0 +1,7 @@
|
||||
vec2 project_2d(vec2 a, vec2 b) {
|
||||
return b * (dot(a, b) / dot(b, b));
|
||||
}
|
||||
|
||||
vec3 project_3d(vec3 a, vec3 b) {
|
||||
return b * (dot(a, b) / dot(b, b));
|
||||
}
|
Reference in New Issue
Block a user