1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-20 20:35:57 +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

@ -2,19 +2,26 @@
Projects a vector onto a plane defined by a normal orthogonal to the plane.
<hr>
**Controls**
|Options|Description|
|---|---|
|Vector2, Vector3|Vector type to use for calculation|
**Inputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|vector|Dynamic vector|none|Vector to project|
|plane normal|Dynamic vector|none|Normal orthogonal of the plane|
|vector|vector3|none|Vector to project|
|plane normal|vector3|none|Normal orthogonal of the plane|
**Outputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|vector|vector3|None|Output vector|
**ShaderInc location**
<br>`res://addons/ShaderLib/Maths/Vector/ProjectOnPlane.gdshaderinc`
**Method signature**
<br>`vec3 project_on_plane(vec3 vector, vec3 plane_normal)`
**Parameters**
|Name|Type|Description|
|---|---|---|
|vector|vec3|Input vector|
|plane_normal|vec3|Normal vector to the plane|
___