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

837 B

Project node

Projects vector A onto vector B.


Controls

Options Description
Vector2, Vector3 Vector type to use for calculation

Inputs

Name Type Binding Description
vector A Dynamic vector none Vector to project
vector B Dynamic vector none Vector on which vector A will be projected

Outputs

Name Type Binding Description
vector vector3 None Output vector

ShaderInc location
res://addons/ShaderLib/Maths/Maths.gdshaderinc

Method signature
vec2 project_2d(vec2 a, vec2 b)
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