mirror of
https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git
synced 2025-09-20 12:25:59 +08:00
ShaderInc files refactored for the ease of future improvements
This commit is contained in:
@ -20,8 +20,7 @@ Returns the distance between two points using Chebyshev distance matrix.
|
||||
|distance|float|None|Distance between 2 points|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>For 2D - `res://addons/ShaderLib/Maths/Vector/Distance/Chebyshev2D.gdshaderinc`
|
||||
<br>For 3D - `res://addons/ShaderLib/Maths/Vector/Distance/Chebyshev3D.gdshaderinc`
|
||||
<br>`res://addons/ShaderLib/Maths/Maths.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>For 2D - `float chebyshev_distance_2d(vec2 point1, vec2 point2, float power)`
|
||||
|
@ -19,8 +19,7 @@ Returns the distance between two points using Manhattan distance matrix.
|
||||
|distance|float|None|Distance between 2 points|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>For 2D - `res://addons/ShaderLib/Maths/Vector/Distance/Manhattan2D.gdshaderinc`
|
||||
<br>For 3D - `res://addons/ShaderLib/Maths/Vector/Distance/Manhattan3D.gdshaderinc`
|
||||
<br>`res://addons/ShaderLib/Maths/Maths.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>For 2D - `float manhattan_distance_2d(vec2 point1, vec2 point2)`
|
||||
|
@ -19,7 +19,7 @@ Projects <i><b>vector A</b></i> onto <i><b>vector B</b></i>.
|
||||
|vector|vector3|None|Output vector|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Maths/Vector/Project.gdshaderinc`
|
||||
<br>`res://addons/ShaderLib/Maths/Maths.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec2 project_2d(vec2 a, vec2 b)`
|
||||
|
@ -14,7 +14,7 @@ Projects a vector onto a plane defined by a normal orthogonal to the plane.
|
||||
|vector|vector3|None|Output vector|
|
||||
|
||||
**ShaderInc location**
|
||||
<br>`res://addons/ShaderLib/Maths/Vector/ProjectOnPlane.gdshaderinc`
|
||||
<br>`res://addons/ShaderLib/Maths/Maths.gdshaderinc`
|
||||
|
||||
**Method signature**
|
||||
<br>`vec3 project_on_plane(vec3 vector, vec3 plane_normal)`
|
||||
|
Reference in New Issue
Block a user