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

Issue #2 resolved

This commit is contained in:
Digvijaysinh Gohil
2024-01-12 16:53:06 +05:30
parent a0aaf91ef3
commit 4205904cb5
20 changed files with 179 additions and 70 deletions

View File

@ -2,8 +2,6 @@
class_name VisualShaderNodeProceduralSimpleNoise extends VisualShaderNodeCustom
func _init() -> void:
set_input_port_default_value(1, 10.0)
output_port_for_preview = 0
func _get_name() -> String:
@ -37,6 +35,13 @@ func _get_input_port_type(port: int) -> VisualShaderNode.PortType:
return PORT_TYPE_SCALAR
return PORT_TYPE_SCALAR
func _get_input_port_default_value(port: int) -> Variant:
match port:
1:
return 10.0
_:
return null
func _get_output_port_count() -> int:
return 1