Make PerlinNoise3D accept scalars directly

The current code requires creating and plugging a Scalar node just to enter the value "10" (see current screenshot); with this change, the node, like existing Godot nodes, can take the scalar value directly within the PerlinNoise3D Node.
This commit is contained in:
Beuc
2020-10-13 18:11:50 +02:00
committed by GitHub
parent 9df5158bca
commit e93159960a

View File

@@ -50,6 +50,10 @@ all you need to initialize your plugin.
return "Classic Perlin-Noise-3D function (by Curly-Brace)"
func _init():
set_input_port_default_value(2, 0.0)
func _get_return_icon_type():
return VisualShaderNode.PORT_TYPE_SCALAR