class_visualshadernodetextureuniform.rst 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. :github_url: hide
  2. .. DO NOT EDIT THIS FILE!!!
  3. .. Generated automatically from Godot engine sources.
  4. .. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/VisualShaderNodeTextureUniform.xml.
  6. .. _class_VisualShaderNodeTextureUniform:
  7. VisualShaderNodeTextureUniform
  8. ==============================
  9. **Inherits:** :ref:`VisualShaderNodeUniform<class_VisualShaderNodeUniform>` **<** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`VisualShaderNodeCubeMapUniform<class_VisualShaderNodeCubeMapUniform>`, :ref:`VisualShaderNodeTextureUniformTriplanar<class_VisualShaderNodeTextureUniformTriplanar>`
  11. Performs a uniform texture lookup within the visual shader graph.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. Performs a lookup operation on the texture provided as a uniform for the shader.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+-------+
  22. | :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` | :ref:`color_default<class_VisualShaderNodeTextureUniform_property_color_default>` | ``0`` |
  23. +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+-------+
  24. | :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` | :ref:`texture_type<class_VisualShaderNodeTextureUniform_property_texture_type>` | ``0`` |
  25. +-----------------------------------------------------------------------+-----------------------------------------------------------------------------------+-------+
  26. .. rst-class:: classref-section-separator
  27. ----
  28. .. rst-class:: classref-descriptions-group
  29. Enumerations
  30. ------------
  31. .. _enum_VisualShaderNodeTextureUniform_TextureType:
  32. .. rst-class:: classref-enumeration
  33. enum **TextureType**:
  34. .. _class_VisualShaderNodeTextureUniform_constant_TYPE_DATA:
  35. .. rst-class:: classref-enumeration-constant
  36. :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **TYPE_DATA** = ``0``
  37. No hints are added to the uniform declaration.
  38. .. _class_VisualShaderNodeTextureUniform_constant_TYPE_COLOR:
  39. .. rst-class:: classref-enumeration-constant
  40. :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **TYPE_COLOR** = ``1``
  41. Adds ``hint_albedo`` as hint to the uniform declaration for proper sRGB to linear conversion.
  42. .. _class_VisualShaderNodeTextureUniform_constant_TYPE_NORMALMAP:
  43. .. rst-class:: classref-enumeration-constant
  44. :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **TYPE_NORMALMAP** = ``2``
  45. Adds ``hint_normal`` as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
  46. .. _class_VisualShaderNodeTextureUniform_constant_TYPE_ANISO:
  47. .. rst-class:: classref-enumeration-constant
  48. :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **TYPE_ANISO** = ``3``
  49. Adds ``hint_aniso`` as hint to the uniform declaration to use for a flowmap.
  50. .. rst-class:: classref-item-separator
  51. ----
  52. .. _enum_VisualShaderNodeTextureUniform_ColorDefault:
  53. .. rst-class:: classref-enumeration
  54. enum **ColorDefault**:
  55. .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_WHITE:
  56. .. rst-class:: classref-enumeration-constant
  57. :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` **COLOR_DEFAULT_WHITE** = ``0``
  58. Defaults to white color.
  59. .. _class_VisualShaderNodeTextureUniform_constant_COLOR_DEFAULT_BLACK:
  60. .. rst-class:: classref-enumeration-constant
  61. :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` **COLOR_DEFAULT_BLACK** = ``1``
  62. Defaults to black color.
  63. .. rst-class:: classref-section-separator
  64. ----
  65. .. rst-class:: classref-descriptions-group
  66. Property Descriptions
  67. ---------------------
  68. .. _class_VisualShaderNodeTextureUniform_property_color_default:
  69. .. rst-class:: classref-property
  70. :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` **color_default** = ``0``
  71. .. rst-class:: classref-property-setget
  72. - void **set_color_default** **(** :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` value **)**
  73. - :ref:`ColorDefault<enum_VisualShaderNodeTextureUniform_ColorDefault>` **get_color_default** **(** **)**
  74. Sets the default color if no texture is assigned to the uniform.
  75. .. rst-class:: classref-item-separator
  76. ----
  77. .. _class_VisualShaderNodeTextureUniform_property_texture_type:
  78. .. rst-class:: classref-property
  79. :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **texture_type** = ``0``
  80. .. rst-class:: classref-property-setget
  81. - void **set_texture_type** **(** :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` value **)**
  82. - :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` **get_texture_type** **(** **)**
  83. Defines the type of data provided by the source texture. See :ref:`TextureType<enum_VisualShaderNodeTextureUniform_TextureType>` for options.
  84. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  85. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  86. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  87. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`