1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 11:56:01 +08:00

Documentation updated

This commit is contained in:
Digvijaysinh Gohil
2024-07-03 00:20:02 +05:30
parent 3cf0e2d38a
commit dc049b857b
8 changed files with 129 additions and 7 deletions

View File

@ -17,4 +17,23 @@ Projects <i><b>vector A</b></i> onto <i><b>vector B</b></i>.
|Name|Type|Binding|Description|
|---|---|---|---|
|vector|vector3|None|Output vector|
**ShaderInc location**
<br>`res://addons/ShaderLib/Maths/Vector/Project.gdshaderinc`
**Method signature**
<br>`vec2 project_2d(vec2 a, vec2 b)`
<br>`vec3 project_3d(vec3 a, vec3 b)`
**Parameters for 2D**
|Name|Type|Description|
|---|---|---|
|a|vec2|Vector A|
|b|vec2|Vector B|
**Parameters for 3D**
|Name|Type|Description|
|---|---|---|
|a|vec3|Vector A|
|b|vec3|Vector B|
___