1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 20:05:57 +08:00
Files
Godot-Shader-Lib/documentation/Nodes/Maths/Vector/ProjectOnPlane.md
2024-07-21 16:39:45 +05:30

27 lines
655 B
Markdown

# Project On Plane node
Projects a vector onto a plane defined by a normal orthogonal to the plane.
<hr>
**Inputs**
|Name|Type|Binding|Description|
|---|---|---|---|
|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/Maths.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|
___