mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-04 14:11:02 +03:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user