mirror of
https://github.com/godotengine/godot-docs.git
synced 2025-12-31 17:49:03 +03:00
522 lines
51 KiB
ReStructuredText
522 lines
51 KiB
ReStructuredText
.. 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 **)**
|
|
|
|
|