123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522 |
- .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
- .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
- .. _class_ShaderGraph:
- ShaderGraph
- ===========
- **Inherits:** :ref:`Shader<class_shader>` **<** :ref:`Resource<class_resource>` **<** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
- **Inherited By:** :ref:`MaterialShaderGraph<class_materialshadergraph>`, :ref:`CanvasItemShaderGraph<class_canvasitemshadergraph>`
- **Category:** Core
- Brief Description
- -----------------
- Member Functions
- ----------------
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`clear<class_ShaderGraph_clear>` **(** :ref:`int<class_int>` shader_type **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`ColorArray<class_colorarray>` | :ref:`color_ramp_node_get_colors<class_ShaderGraph_color_ramp_node_get_colors>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`RealArray<class_realarray>` | :ref:`color_ramp_node_get_offsets<class_ShaderGraph_color_ramp_node_get_offsets>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`color_ramp_node_set_ramp<class_ShaderGraph_color_ramp_node_set_ramp>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`ColorArray<class_colorarray>` colors, :ref:`RealArray<class_realarray>` offsets **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_string>` | :ref:`comment_node_get_text<class_ShaderGraph_comment_node_get_text>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`comment_node_set_text<class_ShaderGraph_comment_node_set_text>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`String<class_string>` text **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | Error | :ref:`connect_node<class_ShaderGraph_connect_node>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` src_id, :ref:`int<class_int>` src_slot, :ref:`int<class_int>` dst_id, :ref:`int<class_int>` dst_slot **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`CubeMap<class_cubemap>` | :ref:`cubemap_input_node_get_value<class_ShaderGraph_cubemap_input_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`cubemap_input_node_set_value<class_ShaderGraph_cubemap_input_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`CubeMap<class_cubemap>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2Array<class_vector2array>` | :ref:`curve_map_node_get_points<class_ShaderGraph_curve_map_node_get_points>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`curve_map_node_set_points<class_ShaderGraph_curve_map_node_set_points>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector2Array<class_vector2array>` points **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`default_get_value<class_ShaderGraph_default_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` param_id **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`default_set_value<class_ShaderGraph_default_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` param_id, :ref:`Variant<class_variant>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`disconnect_node<class_ShaderGraph_disconnect_node>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` src_id, :ref:`int<class_int>` src_slot, :ref:`int<class_int>` dst_id, :ref:`int<class_int>` dst_slot **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_array>` | :ref:`get_node_connections<class_ShaderGraph_get_node_connections>` **(** :ref:`int<class_int>` shader_type **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_array>` | :ref:`get_node_list<class_ShaderGraph_get_node_list>` **(** :ref:`int<class_int>` shader_type **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_string>` | :ref:`input_node_get_name<class_ShaderGraph_input_node_get_name>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`input_node_set_name<class_ShaderGraph_input_node_set_name>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`String<class_string>` name **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_node_connected<class_ShaderGraph_is_node_connected>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` src_id, :ref:`int<class_int>` src_slot, :ref:`int<class_int>` dst_id, :ref:`int<class_int>` dst_slot **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`node_add<class_ShaderGraph_node_add>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` node_type, :ref:`int<class_int>` id **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector2<class_vector2>` | :ref:`node_get_pos<class_ShaderGraph_node_get_pos>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_variant>` | :ref:`node_get_state<class_ShaderGraph_node_get_state>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`node_get_type<class_ShaderGraph_node_get_type>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`node_remove<class_ShaderGraph_node_remove>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`node_set_pos<class_ShaderGraph_node_set_pos>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` pos **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`node_set_state<class_ShaderGraph_node_set_state>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Variant<class_variant>` state **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_color>` | :ref:`rgb_const_node_get_value<class_ShaderGraph_rgb_const_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`rgb_const_node_set_value<class_ShaderGraph_rgb_const_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Color<class_color>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Color<class_color>` | :ref:`rgb_input_node_get_value<class_ShaderGraph_rgb_input_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`rgb_input_node_set_value<class_ShaderGraph_rgb_input_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Color<class_color>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`rgb_op_node_get_op<class_ShaderGraph_rgb_op_node_get_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`rgb_op_node_set_op<class_ShaderGraph_rgb_op_node_set_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`scalar_const_node_get_value<class_ShaderGraph_scalar_const_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`scalar_const_node_set_value<class_ShaderGraph_scalar_const_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`float<class_float>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`scalar_func_node_get_function<class_ShaderGraph_scalar_func_node_get_function>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`scalar_func_node_set_function<class_ShaderGraph_scalar_func_node_set_function>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` func **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`scalar_input_node_get_value<class_ShaderGraph_scalar_input_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`scalar_input_node_set_value<class_ShaderGraph_scalar_input_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`float<class_float>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`scalar_op_node_get_op<class_ShaderGraph_scalar_op_node_get_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`scalar_op_node_set_op<class_ShaderGraph_scalar_op_node_set_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Texture<class_texture>` | :ref:`texture_input_node_get_value<class_ShaderGraph_texture_input_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`texture_input_node_set_value<class_ShaderGraph_texture_input_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Texture<class_texture>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`texture_node_get_filter_size<class_ShaderGraph_texture_node_get_filter_size>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`texture_node_get_filter_strength<class_ShaderGraph_texture_node_get_filter_strength>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`texture_node_set_filter_size<class_ShaderGraph_texture_node_set_filter_size>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` filter_size **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`texture_node_set_filter_strength<class_ShaderGraph_texture_node_set_filter_strength>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`float<class_float>` filter_strength **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector3<class_vector3>` | :ref:`vec_const_node_get_value<class_ShaderGraph_vec_const_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`vec_const_node_set_value<class_ShaderGraph_vec_const_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector3<class_vector3>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`vec_func_node_get_function<class_ShaderGraph_vec_func_node_get_function>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`vec_func_node_set_function<class_ShaderGraph_vec_func_node_set_function>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` func **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Vector3<class_vector3>` | :ref:`vec_input_node_get_value<class_ShaderGraph_vec_input_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`vec_input_node_set_value<class_ShaderGraph_vec_input_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector3<class_vector3>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`vec_op_node_get_op<class_ShaderGraph_vec_op_node_get_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`vec_op_node_set_op<class_ShaderGraph_vec_op_node_set_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`vec_scalar_op_node_get_op<class_ShaderGraph_vec_scalar_op_node_get_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`vec_scalar_op_node_set_op<class_ShaderGraph_vec_scalar_op_node_set_op>` **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform<class_transform>` | :ref:`xform_const_node_get_value<class_ShaderGraph_xform_const_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`xform_const_node_set_value<class_ShaderGraph_xform_const_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Transform<class_transform>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Transform<class_transform>` | :ref:`xform_input_node_get_value<class_ShaderGraph_xform_input_node_get_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`xform_input_node_set_value<class_ShaderGraph_xform_input_node_set_value>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Transform<class_transform>` value **)** |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`xform_vec_mult_node_get_no_translation<class_ShaderGraph_xform_vec_mult_node_get_no_translation>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const |
- +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | void | :ref:`xform_vec_mult_node_set_no_translation<class_ShaderGraph_xform_vec_mult_node_set_no_translation>` **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`bool<class_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
- ---------------------------
- .. _class_ShaderGraph_clear:
- - void **clear** **(** :ref:`int<class_int>` shader_type **)**
- .. _class_ShaderGraph_color_ramp_node_get_colors:
- - :ref:`ColorArray<class_colorarray>` **color_ramp_node_get_colors** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_color_ramp_node_get_offsets:
- - :ref:`RealArray<class_realarray>` **color_ramp_node_get_offsets** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_color_ramp_node_set_ramp:
- - void **color_ramp_node_set_ramp** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`ColorArray<class_colorarray>` colors, :ref:`RealArray<class_realarray>` offsets **)**
- .. _class_ShaderGraph_comment_node_get_text:
- - :ref:`String<class_string>` **comment_node_get_text** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_comment_node_set_text:
- - void **comment_node_set_text** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`String<class_string>` text **)**
- .. _class_ShaderGraph_connect_node:
- - Error **connect_node** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` src_id, :ref:`int<class_int>` src_slot, :ref:`int<class_int>` dst_id, :ref:`int<class_int>` dst_slot **)**
- .. _class_ShaderGraph_cubemap_input_node_get_value:
- - :ref:`CubeMap<class_cubemap>` **cubemap_input_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_cubemap_input_node_set_value:
- - void **cubemap_input_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`CubeMap<class_cubemap>` value **)**
- .. _class_ShaderGraph_curve_map_node_get_points:
- - :ref:`Vector2Array<class_vector2array>` **curve_map_node_get_points** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_curve_map_node_set_points:
- - void **curve_map_node_set_points** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector2Array<class_vector2array>` points **)**
- .. _class_ShaderGraph_default_get_value:
- - void **default_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` param_id **)**
- .. _class_ShaderGraph_default_set_value:
- - void **default_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` param_id, :ref:`Variant<class_variant>` value **)**
- .. _class_ShaderGraph_disconnect_node:
- - void **disconnect_node** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` src_id, :ref:`int<class_int>` src_slot, :ref:`int<class_int>` dst_id, :ref:`int<class_int>` dst_slot **)**
- .. _class_ShaderGraph_get_node_connections:
- - :ref:`Array<class_array>` **get_node_connections** **(** :ref:`int<class_int>` shader_type **)** const
- .. _class_ShaderGraph_get_node_list:
- - :ref:`Array<class_array>` **get_node_list** **(** :ref:`int<class_int>` shader_type **)** const
- .. _class_ShaderGraph_input_node_get_name:
- - :ref:`String<class_string>` **input_node_get_name** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)**
- .. _class_ShaderGraph_input_node_set_name:
- - void **input_node_set_name** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`String<class_string>` name **)**
- .. _class_ShaderGraph_is_node_connected:
- - :ref:`bool<class_bool>` **is_node_connected** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` src_id, :ref:`int<class_int>` src_slot, :ref:`int<class_int>` dst_id, :ref:`int<class_int>` dst_slot **)** const
- .. _class_ShaderGraph_node_add:
- - void **node_add** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` node_type, :ref:`int<class_int>` id **)**
- .. _class_ShaderGraph_node_get_pos:
- - :ref:`Vector2<class_vector2>` **node_get_pos** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_node_get_state:
- - :ref:`Variant<class_variant>` **node_get_state** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_node_get_type:
- - :ref:`int<class_int>` **node_get_type** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_node_remove:
- - void **node_remove** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)**
- .. _class_ShaderGraph_node_set_pos:
- - void **node_set_pos** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector2<class_vector2>` pos **)**
- .. _class_ShaderGraph_node_set_state:
- - void **node_set_state** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Variant<class_variant>` state **)**
- .. _class_ShaderGraph_rgb_const_node_get_value:
- - :ref:`Color<class_color>` **rgb_const_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_rgb_const_node_set_value:
- - void **rgb_const_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Color<class_color>` value **)**
- .. _class_ShaderGraph_rgb_input_node_get_value:
- - :ref:`Color<class_color>` **rgb_input_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_rgb_input_node_set_value:
- - void **rgb_input_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Color<class_color>` value **)**
- .. _class_ShaderGraph_rgb_op_node_get_op:
- - :ref:`int<class_int>` **rgb_op_node_get_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const
- .. _class_ShaderGraph_rgb_op_node_set_op:
- - void **rgb_op_node_set_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)**
- .. _class_ShaderGraph_scalar_const_node_get_value:
- - :ref:`float<class_float>` **scalar_const_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_scalar_const_node_set_value:
- - void **scalar_const_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`float<class_float>` value **)**
- .. _class_ShaderGraph_scalar_func_node_get_function:
- - :ref:`int<class_int>` **scalar_func_node_get_function** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_scalar_func_node_set_function:
- - void **scalar_func_node_set_function** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` func **)**
- .. _class_ShaderGraph_scalar_input_node_get_value:
- - :ref:`float<class_float>` **scalar_input_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_scalar_input_node_set_value:
- - void **scalar_input_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`float<class_float>` value **)**
- .. _class_ShaderGraph_scalar_op_node_get_op:
- - :ref:`int<class_int>` **scalar_op_node_get_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const
- .. _class_ShaderGraph_scalar_op_node_set_op:
- - void **scalar_op_node_set_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)**
- .. _class_ShaderGraph_texture_input_node_get_value:
- - :ref:`Texture<class_texture>` **texture_input_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_texture_input_node_set_value:
- - void **texture_input_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Texture<class_texture>` value **)**
- .. _class_ShaderGraph_texture_node_get_filter_size:
- - :ref:`int<class_int>` **texture_node_get_filter_size** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_texture_node_get_filter_strength:
- - :ref:`float<class_float>` **texture_node_get_filter_strength** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const
- .. _class_ShaderGraph_texture_node_set_filter_size:
- - void **texture_node_set_filter_size** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` filter_size **)**
- .. _class_ShaderGraph_texture_node_set_filter_strength:
- - void **texture_node_set_filter_strength** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`float<class_float>` filter_strength **)**
- .. _class_ShaderGraph_vec_const_node_get_value:
- - :ref:`Vector3<class_vector3>` **vec_const_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_vec_const_node_set_value:
- - void **vec_const_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector3<class_vector3>` value **)**
- .. _class_ShaderGraph_vec_func_node_get_function:
- - :ref:`int<class_int>` **vec_func_node_get_function** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_vec_func_node_set_function:
- - void **vec_func_node_set_function** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`int<class_int>` func **)**
- .. _class_ShaderGraph_vec_input_node_get_value:
- - :ref:`Vector3<class_vector3>` **vec_input_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_vec_input_node_set_value:
- - void **vec_input_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Vector3<class_vector3>` value **)**
- .. _class_ShaderGraph_vec_op_node_get_op:
- - :ref:`int<class_int>` **vec_op_node_get_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const
- .. _class_ShaderGraph_vec_op_node_set_op:
- - void **vec_op_node_set_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)**
- .. _class_ShaderGraph_vec_scalar_op_node_get_op:
- - :ref:`int<class_int>` **vec_scalar_op_node_get_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id **)** const
- .. _class_ShaderGraph_vec_scalar_op_node_set_op:
- - void **vec_scalar_op_node_set_op** **(** :ref:`int<class_int>` shader_type, :ref:`float<class_float>` id, :ref:`int<class_int>` op **)**
- .. _class_ShaderGraph_xform_const_node_get_value:
- - :ref:`Transform<class_transform>` **xform_const_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_xform_const_node_set_value:
- - void **xform_const_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Transform<class_transform>` value **)**
- .. _class_ShaderGraph_xform_input_node_get_value:
- - :ref:`Transform<class_transform>` **xform_input_node_get_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_xform_input_node_set_value:
- - void **xform_input_node_set_value** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`Transform<class_transform>` value **)**
- .. _class_ShaderGraph_xform_vec_mult_node_get_no_translation:
- - :ref:`bool<class_bool>` **xform_vec_mult_node_get_no_translation** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id **)** const
- .. _class_ShaderGraph_xform_vec_mult_node_set_no_translation:
- - void **xform_vec_mult_node_set_no_translation** **(** :ref:`int<class_int>` shader_type, :ref:`int<class_int>` id, :ref:`bool<class_bool>` disable **)**
|