Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
VisualShaderNodeCustom¶
Inherits: VisualShaderNode < Resource < RefCounted < Object
Virtual class to define custom VisualShaderNodes for use in the Visual Shader Editor.
Description¶
By inheriting this class you can create a custom VisualShader script addon which will be automatically added to the Visual Shader Editor. The VisualShaderNode's behavior is defined by overriding the provided virtual methods.
In order for the node to be registered as an editor addon, you must use the @tool
annotation and provide a class_name
for your custom script. For example:
@tool
extends VisualShaderNodeCustom
class_name VisualShaderNodeNoise
Tutorials¶
Methods¶
_get_category ( ) virtual const |
|
_get_code ( String[] input_vars, String[] output_vars, Mode mode, Type type ) virtual const |
|
_get_default_input_port ( PortType type ) virtual const |
|
_get_description ( ) virtual const |
|