VisualShader

Inherits: Shader < Resource < Reference < Object

Category: Core

Brief Description

Properties

Vector2graph_offset

Methods

voidadd_node ( Type type, VisualShaderNode node, Vector2 position, int id )
boolcan_connect_nodes ( Type type, int from_node, int from_port, int to_node, int to_port ) const
Errorconnect_nodes ( Type type, int from_node, int from_port, int to_node, int to_port )
voiddisconnect_nodes ( Type type, int from_node, int from_port, int to_node, int to_port )
VisualShaderNodeget_node ( Type type, int id ) const
Arrayget_node_connections ( Type type ) const
PoolIntArrayget_node_list ( Type type ) const
Vector2get_node_position ( Type type, int id ) const
intget_valid_node_id ( Type type ) const
boolis_node_connection ( Type type, int from_node, int from_port, int to_node, int to_port ) const
voidremove_node ( Type type, int id )
voidset_mode ( Mode mode )
voidset_node_position ( Type type, int id, Vector2 position )

Enumerations

enum Type:

  • TYPE_VERTEX = 0
  • TYPE_FRAGMENT = 1
  • TYPE_LIGHT = 2
  • TYPE_MAX = 3 — Represents the size of the Type enum.

Constants

  • NODE_ID_INVALID = -1
  • NODE_ID_OUTPUT = 0

Property Descriptions

Setterset_graph_offset(value)
Getterget_graph_offset()

Method Descriptions




  • void disconnect_nodes ( Type type, int from_node, int from_port, int to_node, int to_port )


  • Array get_node_connections ( Type type ) const



  • int get_valid_node_id ( Type type ) const

  • bool is_node_connection ( Type type, int from_node, int from_port, int to_node, int to_port ) const

  • void remove_node ( Type type, int id )

  • void set_mode ( Mode mode )