1
0
mirror of https://github.com/DigvijaysinhGohil/Godot-Shader-Lib.git synced 2025-09-19 20:05:57 +08:00

VectorTransform node availability updated for shader modes

This commit is contained in:
Digvijaysinh Gohil
2024-01-12 18:49:41 +05:30
parent 13971eeab6
commit 2828af7503
2 changed files with 5 additions and 1 deletions

View File

@ -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