class_visualshadernodeintuniform.rst 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the VisualShaderNodeIntUniform.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_VisualShaderNodeIntUniform:
  6. VisualShaderNodeIntUniform
  7. ==========================
  8. **Inherits:** :ref:`VisualShaderNodeUniform<class_VisualShaderNodeUniform>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. A scalar integer uniform to be used within the visual shader graph.
  10. Description
  11. -----------
  12. Translated to ``uniform int`` in the shader language.
  13. Properties
  14. ----------
  15. +---------------------------------------------------+-------------------------------------------------------------+---------+
  16. | :ref:`Hint<enum_VisualShaderNodeIntUniform_Hint>` | :ref:`hint<class_VisualShaderNodeIntUniform_property_hint>` | ``0`` |
  17. +---------------------------------------------------+-------------------------------------------------------------+---------+
  18. | :ref:`int<class_int>` | :ref:`max<class_VisualShaderNodeIntUniform_property_max>` | ``100`` |
  19. +---------------------------------------------------+-------------------------------------------------------------+---------+
  20. | :ref:`int<class_int>` | :ref:`min<class_VisualShaderNodeIntUniform_property_min>` | ``0`` |
  21. +---------------------------------------------------+-------------------------------------------------------------+---------+
  22. | :ref:`int<class_int>` | :ref:`step<class_VisualShaderNodeIntUniform_property_step>` | ``1`` |
  23. +---------------------------------------------------+-------------------------------------------------------------+---------+
  24. Enumerations
  25. ------------
  26. .. _enum_VisualShaderNodeIntUniform_Hint:
  27. .. _class_VisualShaderNodeIntUniform_constant_HINT_NONE:
  28. .. _class_VisualShaderNodeIntUniform_constant_HINT_RANGE:
  29. .. _class_VisualShaderNodeIntUniform_constant_HINT_RANGE_STEP:
  30. enum **Hint**:
  31. - **HINT_NONE** = **0** --- No hint used.
  32. - **HINT_RANGE** = **1** --- A range hint for scalar value, which limits possible input values between :ref:`min<class_VisualShaderNodeIntUniform_property_min>` and :ref:`max<class_VisualShaderNodeIntUniform_property_max>`. Translated to ``hint_range(min, max)`` in shader code.
  33. - **HINT_RANGE_STEP** = **2** --- A range hint for scalar value with step, which limits possible input values between :ref:`min<class_VisualShaderNodeIntUniform_property_min>` and :ref:`max<class_VisualShaderNodeIntUniform_property_max>`, with a step (increment) of :ref:`step<class_VisualShaderNodeIntUniform_property_step>`). Translated to ``hint_range(min, max, step)`` in shader code.
  34. Property Descriptions
  35. ---------------------
  36. .. _class_VisualShaderNodeIntUniform_property_hint:
  37. - :ref:`Hint<enum_VisualShaderNodeIntUniform_Hint>` **hint**
  38. +-----------+-----------------+
  39. | *Default* | ``0`` |
  40. +-----------+-----------------+
  41. | *Setter* | set_hint(value) |
  42. +-----------+-----------------+
  43. | *Getter* | get_hint() |
  44. +-----------+-----------------+
  45. A hint applied to the uniform, which controls the values it can take when set through the inspector.
  46. ----
  47. .. _class_VisualShaderNodeIntUniform_property_max:
  48. - :ref:`int<class_int>` **max**
  49. +-----------+----------------+
  50. | *Default* | ``100`` |
  51. +-----------+----------------+
  52. | *Setter* | set_max(value) |
  53. +-----------+----------------+
  54. | *Getter* | get_max() |
  55. +-----------+----------------+
  56. Minimum value for range hints. Used if :ref:`hint<class_VisualShaderNodeIntUniform_property_hint>` is set to :ref:`HINT_RANGE<class_VisualShaderNodeIntUniform_constant_HINT_RANGE>` or :ref:`HINT_RANGE_STEP<class_VisualShaderNodeIntUniform_constant_HINT_RANGE_STEP>`.
  57. ----
  58. .. _class_VisualShaderNodeIntUniform_property_min:
  59. - :ref:`int<class_int>` **min**
  60. +-----------+----------------+
  61. | *Default* | ``0`` |
  62. +-----------+----------------+
  63. | *Setter* | set_min(value) |
  64. +-----------+----------------+
  65. | *Getter* | get_min() |
  66. +-----------+----------------+
  67. Maximum value for range hints. Used if :ref:`hint<class_VisualShaderNodeIntUniform_property_hint>` is set to :ref:`HINT_RANGE<class_VisualShaderNodeIntUniform_constant_HINT_RANGE>` or :ref:`HINT_RANGE_STEP<class_VisualShaderNodeIntUniform_constant_HINT_RANGE_STEP>`.
  68. ----
  69. .. _class_VisualShaderNodeIntUniform_property_step:
  70. - :ref:`int<class_int>` **step**
  71. +-----------+-----------------+
  72. | *Default* | ``1`` |
  73. +-----------+-----------------+
  74. | *Setter* | set_step(value) |
  75. +-----------+-----------------+
  76. | *Getter* | get_step() |
  77. +-----------+-----------------+
  78. Step (increment) value for the range hint with step. Used if :ref:`hint<class_VisualShaderNodeIntUniform_property_hint>` is set to :ref:`HINT_RANGE_STEP<class_VisualShaderNodeIntUniform_constant_HINT_RANGE_STEP>`.