diff --git a/README.md b/README.md index a95eebc..5add5e2 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ ___

Vector

Vector Transform node

-Returns the transformed vector of the input value in from one coordinate space to another. +Returns the transformed vector of the input value in from one coordinate space to another.

This node is only available in shader modes SPATIAL.
**Inputs** @@ -51,6 +51,7 @@ Returns the transformed vector of the input value in from one coor ___
+

Wave

Noise Sine Wave node

diff --git a/addons/ShaderLib/Maths/Vector/VectorTransform.gd b/addons/ShaderLib/Maths/Vector/VectorTransform.gd index 157a051..6124e22 100644 --- a/addons/ShaderLib/Maths/Vector/VectorTransform.gd +++ b/addons/ShaderLib/Maths/Vector/VectorTransform.gd @@ -51,6 +51,9 @@ func _get_property_name(index: int) -> String: func _get_property_options(index: int) -> PackedStringArray: return ["Local", "World", "View", "Screen", "Tangent"] +func _is_available(mode: Shader.Mode, type: VisualShader.Type) -> bool: + return mode == Shader.MODE_SPATIAL + func _get_global_code(mode: Shader.Mode) -> String: var code: String = preload("VectorTransform.gdshaderinc").code return code