- _inputTypeChanged
void _inputTypeChanged(long arg0, long arg1)
- _queueUpdate
void _queueUpdate()
- _updateShader
void _updateShader()
- addNode
void addNode(long type, VisualShaderNode node, Vector2 position, long id)
Adds the specified node to the shader.
- canConnectNodes
bool canConnectNodes(long type, long from_node, long from_port, long to_node, long to_port)
Returns true if the specified nodes and ports can be connected together.
- connectNodes
GodotError connectNodes(long type, long from_node, long from_port, long to_node, long to_port)
Connects the specified nodes and ports.
- connectNodesForced
void connectNodesForced(long type, long from_node, long from_port, long to_node, long to_port)
Connects the specified nodes and ports, even if they can't be connected. Such connection is invalid and will not function properly.
- disconnectNodes
void disconnectNodes(long type, long from_node, long from_port, long to_node, long to_port)
Connects the specified nodes and ports.
- getGraphOffset
Vector2 getGraphOffset()
- getNode
Ref!VisualShaderNode getNode(long type, long id)
Returns the shader node instance with specified type and id.
- getNodeConnections
Array getNodeConnections(long type)
Returns the list of connected nodes with the specified type.
- getNodeList
PoolIntArray getNodeList(long type)
Returns the list of all nodes in the shader with the specified type.
- getNodePosition
Vector2 getNodePosition(long type, long id)
Returns the position of the specified node within the shader graph.
- getValidNodeId
long getValidNodeId(long type)
- isNodeConnection
bool isNodeConnection(long type, long from_node, long from_port, long to_node, long to_port)
Returns true if the specified node and port connection exist.
- opAssign
typeof(null) opAssign(typeof(null) n)
- opEquals
bool opEquals(VisualShader other)
- opEquals
bool opEquals(typeof(null) n)
- removeNode
void removeNode(long type, long id)
Removes the specified node from the shader.
- setGraphOffset
void setGraphOffset(Vector2 offset)
- setMode
void setMode(long mode)
Sets the mode of this shader.
- setNodePosition
void setNodePosition(long type, long id, Vector2 position)
Sets the position of the specified node.
- toHash
size_t toHash()
A custom shader program with a visual editor.
This class allows you to define a custom shader program that can be used for various materials to render objects. The visual shader editor creates the shader.