From 13971eeab6cb3bb965bfca400719a55431634a50 Mon Sep 17 00:00:00 2001 From: Digvijaysinh Gohil Date: Fri, 12 Jan 2024 18:33:43 +0530 Subject: [PATCH] Documentation for VectorTransform node added --- README.md | 30 ++++++++++++++++++- .../ShaderLib/Maths/Vector/VectorTransform.gd | 4 +-- 2 files changed, 31 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 9ab69b4..a95eebc 100644 --- a/README.md +++ b/README.md @@ -27,6 +27,30 @@ ___

Maths nodes

+

Vector

+
+

Vector Transform node

+Returns the transformed vector of the input value in from one coordinate space to another. +
+ +**Inputs** +|Name|Type|Binding|Description| +|---|---|---|---| +|in|vector3|none|Input vector| + +**Controls** +|Name|Options|Description| +|---|---|---| +|From|Local, World, View, Screen, Tangent|Coordinate space from which you want to transform the input vector| +|To|Local, World, View, Screen, Tangent|Coordinate space to which you want to transform the input vector| + +**Outputs** +|Name|Type|Binding|Description| +|---|---|---|---| +|out|vector3|None|Output vector| +___ +
+

Wave

Noise Sine Wave node

@@ -360,7 +384,11 @@ Rotates value of input UV around a reference point defined by input center |uv|vec2|UV|Input UV value| |center|vec2|none|Center reference point| |rotation|float|none|Rotation amount in radians| -|use degrees|bool|none|Use degrees instead of radians for rotation amount| + +**Controls** +|Name|Options|Description| +|---|---|---| +|Units|Degrees, Radians|Specifies the unit for rotation input| **Outputs** |Name|Type|Binding|Description| diff --git a/addons/ShaderLib/Maths/Vector/VectorTransform.gd b/addons/ShaderLib/Maths/Vector/VectorTransform.gd index f21d017..157a051 100644 --- a/addons/ShaderLib/Maths/Vector/VectorTransform.gd +++ b/addons/ShaderLib/Maths/Vector/VectorTransform.gd @@ -17,7 +17,7 @@ func _get_input_port_count() -> int: return 1 func _get_input_port_name(port: int) -> String: - return "input" + return "in" func _get_input_port_type(port: int) -> PortType: return PORT_TYPE_VECTOR_3D @@ -26,7 +26,7 @@ func _get_output_port_count() -> int: return 1 func _get_output_port_name(port: int) -> String: - return "output" + return "out" func _get_output_port_type(port: int) -> PortType: return PORT_TYPE_VECTOR_3D