ShaderGraph

Inherits: Shader < Resource < Reference < Object

Inherited By: MaterialShaderGraph, CanvasItemShaderGraph

Category: Core

Brief Description

Member Functions

void

clear ( int shader_type )

ColorArray

color_ramp_node_get_colors ( int shader_type, int id ) const

RealArray

color_ramp_node_get_offsets ( int shader_type, int id ) const

void

color_ramp_node_set_ramp ( int shader_type, int id, ColorArray colors, RealArray offsets )

String

comment_node_get_text ( int shader_type, int id ) const

void

comment_node_set_text ( int shader_type, int id, String text )

Error

connect_node ( int shader_type, int src_id, int src_slot, int dst_id, int dst_slot )

CubeMap

cubemap_input_node_get_value ( int shader_type, int id ) const

void

cubemap_input_node_set_value ( int shader_type, int id, CubeMap value )

Vector2Array

curve_map_node_get_points ( int shader_type, int id ) const

void

curve_map_node_set_points ( int shader_type, int id, Vector2Array points )

void

default_get_value ( int shader_type, int id, int param_id )

void

default_set_value ( int shader_type, int id, int param_id, Variant value )

void

disconnect_node ( int shader_type, int src_id, int src_slot, int dst_id, int dst_slot )

Array

get_node_connections ( int shader_type ) const

Array

get_node_list ( int shader_type ) const

String

input_node_get_name ( int shader_type, int id )

void

input_node_set_name ( int shader_type, int id, String name )

bool

is_node_connected ( int shader_type, int src_id, int src_slot, int dst_id, int dst_slot ) const

void

node_add ( int shader_type, int node_type, int id )

Vector2

node_get_pos ( int shader_type, int id ) const

Variant

node_get_state ( int shader_type, int id ) const

int

node_get_type ( int shader_type, int id ) const

void

node_remove ( int shader_type, int id )

void

node_set_pos ( int shader_type, int id, Vector2 pos )

void

node_set_state ( int shader_type, int id, Variant state )

Color

rgb_const_node_get_value ( int shader_type, int id ) const

void

rgb_const_node_set_value ( int shader_type, int id, Color value )

Color

rgb_input_node_get_value ( int shader_type, int id ) const

void

rgb_input_node_set_value ( int shader_type, int id, Color value )

int

rgb_op_node_get_op ( int shader_type, float id ) const

void

rgb_op_node_set_op ( int shader_type, float id, int op )

float

scalar_const_node_get_value ( int shader_type, int id ) const

void

scalar_const_node_set_value ( int shader_type, int id, float value )

int

scalar_func_node_get_function ( int shader_type, int id ) const

void

scalar_func_node_set_function ( int shader_type, int id, int func )

float

scalar_input_node_get_value ( int shader_type, int id ) const

void

scalar_input_node_set_value ( int shader_type, int id, float value )

int

scalar_op_node_get_op ( int shader_type, float id ) const

void

scalar_op_node_set_op ( int shader_type, float id, int op )

Texture

texture_input_node_get_value ( int shader_type, int id ) const

void

texture_input_node_set_value ( int shader_type, int id, Texture value )

int

texture_node_get_filter_size ( int shader_type, int id ) const

float

texture_node_get_filter_strength ( int shader_type, float id ) const

void

texture_node_set_filter_size ( int shader_type, int id, int filter_size )

void

texture_node_set_filter_strength ( int shader_type, float id, float filter_strength )

Vector3

vec_const_node_get_value ( int shader_type, int id ) const

void

vec_const_node_set_value ( int shader_type, int id, Vector3 value )

int

vec_func_node_get_function ( int shader_type, int id ) const

void

vec_func_node_set_function ( int shader_type, int id, int func )

Vector3

vec_input_node_get_value ( int shader_type, int id ) const

void

vec_input_node_set_value ( int shader_type, int id, Vector3 value )

int

vec_op_node_get_op ( int shader_type, float id ) const

void

vec_op_node_set_op ( int shader_type, float id, int op )

int

vec_scalar_op_node_get_op ( int shader_type, float id ) const

void

vec_scalar_op_node_set_op ( int shader_type, float id, int op )

Transform

xform_const_node_get_value ( int shader_type, int id ) const

void

xform_const_node_set_value ( int shader_type, int id, Transform value )

Transform

xform_input_node_get_value ( int shader_type, int id ) const

void

xform_input_node_set_value ( int shader_type, int id, Transform value )

bool

xform_vec_mult_node_get_no_translation ( int shader_type, int id ) const

void

xform_vec_mult_node_set_no_translation ( int shader_type, int id, bool disable )

Signals

  • updated ( )

Numeric Constants

  • NODE_INPUT = 0

  • NODE_SCALAR_CONST = 1

  • NODE_VEC_CONST = 2

  • NODE_RGB_CONST = 3

  • NODE_XFORM_CONST = 4

  • NODE_TIME = 5

  • NODE_SCREEN_TEX = 6

  • NODE_SCALAR_OP = 7

  • NODE_VEC_OP = 8

  • NODE_VEC_SCALAR_OP = 9

  • NODE_RGB_OP = 10

  • NODE_XFORM_MULT = 11

  • NODE_XFORM_VEC_MULT = 12

  • NODE_XFORM_VEC_INV_MULT = 13

  • NODE_SCALAR_FUNC = 14

  • NODE_VEC_FUNC = 15

  • NODE_VEC_LEN = 16

  • NODE_DOT_PROD = 17

  • NODE_VEC_TO_SCALAR = 18

  • NODE_SCALAR_TO_VEC = 19

  • NODE_VEC_TO_XFORM = 21

  • NODE_XFORM_TO_VEC = 20

  • NODE_SCALAR_INTERP = 22

  • NODE_VEC_INTERP = 23

  • NODE_COLOR_RAMP = 24

  • NODE_CURVE_MAP = 25

  • NODE_SCALAR_INPUT = 26

  • NODE_VEC_INPUT = 27

  • NODE_RGB_INPUT = 28

  • NODE_XFORM_INPUT = 29

  • NODE_TEXTURE_INPUT = 30

  • NODE_CUBEMAP_INPUT = 31

  • NODE_DEFAULT_TEXTURE = 32

  • NODE_OUTPUT = 33

  • NODE_COMMENT = 34

  • NODE_TYPE_MAX = 35

  • SLOT_TYPE_SCALAR = 0

  • SLOT_TYPE_VEC = 1

  • SLOT_TYPE_XFORM = 2

  • SLOT_TYPE_TEXTURE = 3

  • SLOT_MAX = 4

  • SHADER_TYPE_VERTEX = 0

  • SHADER_TYPE_FRAGMENT = 1

  • SHADER_TYPE_LIGHT = 2

  • SHADER_TYPE_MAX = 3

  • SLOT_IN = 0

  • SLOT_OUT = 1

  • GRAPH_OK = 0

  • GRAPH_ERROR_CYCLIC = 1

  • GRAPH_ERROR_MISSING_CONNECTIONS = 2

  • SCALAR_OP_ADD = 0

  • SCALAR_OP_SUB = 1

  • SCALAR_OP_MUL = 2

  • SCALAR_OP_DIV = 3

  • SCALAR_OP_MOD = 4

  • SCALAR_OP_POW = 5

  • SCALAR_OP_MAX = 6

  • SCALAR_OP_MIN = 7

  • SCALAR_OP_ATAN2 = 8

  • SCALAR_MAX_OP = 9

  • VEC_OP_ADD = 0

  • VEC_OP_SUB = 1

  • VEC_OP_MUL = 2

  • VEC_OP_DIV = 3

  • VEC_OP_MOD = 4

  • VEC_OP_POW = 5

  • VEC_OP_MAX = 6

  • VEC_OP_MIN = 7

  • VEC_OP_CROSS = 8

  • VEC_MAX_OP = 9

  • VEC_SCALAR_OP_MUL = 0

  • VEC_SCALAR_OP_DIV = 1

  • VEC_SCALAR_OP_POW = 2

  • VEC_SCALAR_MAX_OP = 3

  • RGB_OP_SCREEN = 0

  • RGB_OP_DIFFERENCE = 1

  • RGB_OP_DARKEN = 2

  • RGB_OP_LIGHTEN = 3

  • RGB_OP_OVERLAY = 4

  • RGB_OP_DODGE = 5

  • RGB_OP_BURN = 6

  • RGB_OP_SOFT_LIGHT = 7

  • RGB_OP_HARD_LIGHT = 8

  • RGB_MAX_OP = 9

  • SCALAR_FUNC_SIN = 0

  • SCALAR_FUNC_COS = 1

  • SCALAR_FUNC_TAN = 2

  • SCALAR_FUNC_ASIN = 3

  • SCALAR_FUNC_ACOS = 4

  • SCALAR_FUNC_ATAN = 5

  • SCALAR_FUNC_SINH = 6

  • SCALAR_FUNC_COSH = 7

  • SCALAR_FUNC_TANH = 8

  • SCALAR_FUNC_LOG = 9

  • SCALAR_FUNC_EXP = 10

  • SCALAR_FUNC_SQRT = 11

  • SCALAR_FUNC_ABS = 12

  • SCALAR_FUNC_SIGN = 13

  • SCALAR_FUNC_FLOOR = 14

  • SCALAR_FUNC_ROUND = 15

  • SCALAR_FUNC_CEIL = 16

  • SCALAR_FUNC_FRAC = 17

  • SCALAR_FUNC_SATURATE = 18

  • SCALAR_FUNC_NEGATE = 19

  • SCALAR_MAX_FUNC = 20

  • VEC_FUNC_NORMALIZE = 0

  • VEC_FUNC_SATURATE = 1

  • VEC_FUNC_NEGATE = 2

  • VEC_FUNC_RECIPROCAL = 3

  • VEC_FUNC_RGB2HSV = 4

  • VEC_FUNC_HSV2RGB = 5

  • VEC_MAX_FUNC = 6

Member Function Description

  • void clear ( int shader_type )

  • String comment_node_get_text ( int shader_type, int id ) const

  • void comment_node_set_text ( int shader_type, int id, String text )

  • Error connect_node ( int shader_type, int src_id, int src_slot, int dst_id, int dst_slot )

  • CubeMap cubemap_input_node_get_value ( int shader_type, int id ) const

  • void cubemap_input_node_set_value ( int shader_type, int id, CubeMap value )

  • void default_get_value ( int shader_type, int id, int param_id )

  • void default_set_value ( int shader_type, int id, int param_id, Variant value )

  • void disconnect_node ( int shader_type, int src_id, int src_slot, int dst_id, int dst_slot )

  • Array get_node_connections ( int shader_type ) const

  • Array get_node_list ( int shader_type ) const

  • void input_node_set_name ( int shader_type, int id, String name )

  • bool is_node_connected ( int shader_type, int src_id, int src_slot, int dst_id, int dst_slot ) const

  • void node_add ( int shader_type, int node_type, int id )

  • int node_get_type ( int shader_type, int id ) const

  • void node_remove ( int shader_type, int id )

  • Color rgb_const_node_get_value ( int shader_type, int id ) const

  • void rgb_const_node_set_value ( int shader_type, int id, Color value )

  • Color rgb_input_node_get_value ( int shader_type, int id ) const

  • void rgb_input_node_set_value ( int shader_type, int id, Color value )

  • int rgb_op_node_get_op ( int shader_type, float id ) const

  • void rgb_op_node_set_op ( int shader_type, float id, int op )

  • float scalar_const_node_get_value ( int shader_type, int id ) const

  • void scalar_const_node_set_value ( int shader_type, int id, float value )

  • int scalar_func_node_get_function ( int shader_type, int id ) const

  • void scalar_func_node_set_function ( int shader_type, int id, int func )

  • float scalar_input_node_get_value ( int shader_type, int id ) const

  • void scalar_input_node_set_value ( int shader_type, int id, float value )

  • int scalar_op_node_get_op ( int shader_type, float id ) const

  • void scalar_op_node_set_op ( int shader_type, float id, int op )

  • Texture texture_input_node_get_value ( int shader_type, int id ) const

  • void texture_input_node_set_value ( int shader_type, int id, Texture value )

  • int texture_node_get_filter_size ( int shader_type, int id ) const

  • float texture_node_get_filter_strength ( int shader_type, float id ) const

  • void texture_node_set_filter_size ( int shader_type, int id, int filter_size )

  • void texture_node_set_filter_strength ( int shader_type, float id, float filter_strength )

  • Vector3 vec_const_node_get_value ( int shader_type, int id ) const

  • void vec_const_node_set_value ( int shader_type, int id, Vector3 value )

  • int vec_func_node_get_function ( int shader_type, int id ) const

  • void vec_func_node_set_function ( int shader_type, int id, int func )

  • Vector3 vec_input_node_get_value ( int shader_type, int id ) const

  • void vec_input_node_set_value ( int shader_type, int id, Vector3 value )

  • int vec_op_node_get_op ( int shader_type, float id ) const

  • void vec_op_node_set_op ( int shader_type, float id, int op )

  • int vec_scalar_op_node_get_op ( int shader_type, float id ) const

  • void vec_scalar_op_node_set_op ( int shader_type, float id, int op )

  • void xform_const_node_set_value ( int shader_type, int id, Transform value )

  • void xform_input_node_set_value ( int shader_type, int id, Transform value )

  • bool xform_vec_mult_node_get_no_translation ( int shader_type, int id ) const

  • void xform_vec_mult_node_set_no_translation ( int shader_type, int id, bool disable )