class_visualshadernodecubemap.rst 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  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/master/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/VisualShaderNodeCubemap.xml.
  6. .. _class_VisualShaderNodeCubemap:
  7. VisualShaderNodeCubemap
  8. =======================
  9. **Inherits:** :ref:`VisualShaderNode<class_VisualShaderNode>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A :ref:`Cubemap<class_Cubemap>` sampling node to be used within the visual shader graph.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. Translated to ``texture(cubemap, vec3)`` in the shader language. Returns a color vector and alpha channel as scalar.
  15. .. rst-class:: classref-reftable-group
  16. Properties
  17. ----------
  18. .. table::
  19. :widths: auto
  20. +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+
  21. | :ref:`Cubemap<class_Cubemap>` | :ref:`cube_map<class_VisualShaderNodeCubemap_property_cube_map>` | |
  22. +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+
  23. | :ref:`Source<enum_VisualShaderNodeCubemap_Source>` | :ref:`source<class_VisualShaderNodeCubemap_property_source>` | ``0`` |
  24. +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+
  25. | :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` | :ref:`texture_type<class_VisualShaderNodeCubemap_property_texture_type>` | ``0`` |
  26. +--------------------------------------------------------------+--------------------------------------------------------------------------+-------+
  27. .. rst-class:: classref-section-separator
  28. ----
  29. .. rst-class:: classref-descriptions-group
  30. Enumerations
  31. ------------
  32. .. _enum_VisualShaderNodeCubemap_Source:
  33. .. rst-class:: classref-enumeration
  34. enum **Source**:
  35. .. _class_VisualShaderNodeCubemap_constant_SOURCE_TEXTURE:
  36. .. rst-class:: classref-enumeration-constant
  37. :ref:`Source<enum_VisualShaderNodeCubemap_Source>` **SOURCE_TEXTURE** = ``0``
  38. Use the :ref:`Cubemap<class_Cubemap>` set via :ref:`cube_map<class_VisualShaderNodeCubemap_property_cube_map>`. If this is set to :ref:`source<class_VisualShaderNodeCubemap_property_source>`, the ``samplerCube`` port is ignored.
  39. .. _class_VisualShaderNodeCubemap_constant_SOURCE_PORT:
  40. .. rst-class:: classref-enumeration-constant
  41. :ref:`Source<enum_VisualShaderNodeCubemap_Source>` **SOURCE_PORT** = ``1``
  42. Use the :ref:`Cubemap<class_Cubemap>` sampler reference passed via the ``samplerCube`` port. If this is set to :ref:`source<class_VisualShaderNodeCubemap_property_source>`, the :ref:`cube_map<class_VisualShaderNodeCubemap_property_cube_map>` texture is ignored.
  43. .. _class_VisualShaderNodeCubemap_constant_SOURCE_MAX:
  44. .. rst-class:: classref-enumeration-constant
  45. :ref:`Source<enum_VisualShaderNodeCubemap_Source>` **SOURCE_MAX** = ``2``
  46. Represents the size of the :ref:`Source<enum_VisualShaderNodeCubemap_Source>` enum.
  47. .. rst-class:: classref-item-separator
  48. ----
  49. .. _enum_VisualShaderNodeCubemap_TextureType:
  50. .. rst-class:: classref-enumeration
  51. enum **TextureType**:
  52. .. _class_VisualShaderNodeCubemap_constant_TYPE_DATA:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` **TYPE_DATA** = ``0``
  55. No hints are added to the uniform declaration.
  56. .. _class_VisualShaderNodeCubemap_constant_TYPE_COLOR:
  57. .. rst-class:: classref-enumeration-constant
  58. :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` **TYPE_COLOR** = ``1``
  59. Adds ``hint_albedo`` as hint to the uniform declaration for proper sRGB to linear conversion.
  60. .. _class_VisualShaderNodeCubemap_constant_TYPE_NORMAL_MAP:
  61. .. rst-class:: classref-enumeration-constant
  62. :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` **TYPE_NORMAL_MAP** = ``2``
  63. Adds ``hint_normal`` as hint to the uniform declaration, which internally converts the texture for proper usage as normal map.
  64. .. _class_VisualShaderNodeCubemap_constant_TYPE_MAX:
  65. .. rst-class:: classref-enumeration-constant
  66. :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` **TYPE_MAX** = ``3``
  67. Represents the size of the :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` enum.
  68. .. rst-class:: classref-section-separator
  69. ----
  70. .. rst-class:: classref-descriptions-group
  71. Property Descriptions
  72. ---------------------
  73. .. _class_VisualShaderNodeCubemap_property_cube_map:
  74. .. rst-class:: classref-property
  75. :ref:`Cubemap<class_Cubemap>` **cube_map**
  76. .. rst-class:: classref-property-setget
  77. - void **set_cube_map** **(** :ref:`Cubemap<class_Cubemap>` value **)**
  78. - :ref:`Cubemap<class_Cubemap>` **get_cube_map** **(** **)**
  79. The :ref:`Cubemap<class_Cubemap>` texture to sample when using :ref:`SOURCE_TEXTURE<class_VisualShaderNodeCubemap_constant_SOURCE_TEXTURE>` as :ref:`source<class_VisualShaderNodeCubemap_property_source>`.
  80. .. rst-class:: classref-item-separator
  81. ----
  82. .. _class_VisualShaderNodeCubemap_property_source:
  83. .. rst-class:: classref-property
  84. :ref:`Source<enum_VisualShaderNodeCubemap_Source>` **source** = ``0``
  85. .. rst-class:: classref-property-setget
  86. - void **set_source** **(** :ref:`Source<enum_VisualShaderNodeCubemap_Source>` value **)**
  87. - :ref:`Source<enum_VisualShaderNodeCubemap_Source>` **get_source** **(** **)**
  88. Defines which source should be used for the sampling. See :ref:`Source<enum_VisualShaderNodeCubemap_Source>` for options.
  89. .. rst-class:: classref-item-separator
  90. ----
  91. .. _class_VisualShaderNodeCubemap_property_texture_type:
  92. .. rst-class:: classref-property
  93. :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` **texture_type** = ``0``
  94. .. rst-class:: classref-property-setget
  95. - void **set_texture_type** **(** :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` value **)**
  96. - :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` **get_texture_type** **(** **)**
  97. Defines the type of data provided by the source texture. See :ref:`TextureType<enum_VisualShaderNodeCubemap_TextureType>` for options.
  98. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  99. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  100. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  101. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  102. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  103. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  104. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`