class_sky.rst 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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.6/doc/tools/make_rst.py.
  5. .. XML source: https://github.com/godotengine/godot/tree/3.6/doc/classes/Sky.xml.
  6. .. _class_Sky:
  7. Sky
  8. ===
  9. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  10. **Inherited By:** :ref:`PanoramaSky<class_PanoramaSky>`, :ref:`ProceduralSky<class_ProceduralSky>`
  11. The base class for :ref:`PanoramaSky<class_PanoramaSky>` and :ref:`ProceduralSky<class_ProceduralSky>`.
  12. .. rst-class:: classref-introduction-group
  13. Description
  14. -----------
  15. The base class for :ref:`PanoramaSky<class_PanoramaSky>` and :ref:`ProceduralSky<class_ProceduralSky>`.
  16. .. rst-class:: classref-reftable-group
  17. Properties
  18. ----------
  19. .. table::
  20. :widths: auto
  21. +--------------------------------------------+--------------------------------------------------------+-------+
  22. | :ref:`RadianceSize<enum_Sky_RadianceSize>` | :ref:`radiance_size<class_Sky_property_radiance_size>` | ``2`` |
  23. +--------------------------------------------+--------------------------------------------------------+-------+
  24. .. rst-class:: classref-section-separator
  25. ----
  26. .. rst-class:: classref-descriptions-group
  27. Enumerations
  28. ------------
  29. .. _enum_Sky_RadianceSize:
  30. .. rst-class:: classref-enumeration
  31. enum **RadianceSize**:
  32. .. _class_Sky_constant_RADIANCE_SIZE_32:
  33. .. rst-class:: classref-enumeration-constant
  34. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_32** = ``0``
  35. Radiance texture size is 32×32 pixels.
  36. .. _class_Sky_constant_RADIANCE_SIZE_64:
  37. .. rst-class:: classref-enumeration-constant
  38. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_64** = ``1``
  39. Radiance texture size is 64×64 pixels.
  40. .. _class_Sky_constant_RADIANCE_SIZE_128:
  41. .. rst-class:: classref-enumeration-constant
  42. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_128** = ``2``
  43. Radiance texture size is 128×128 pixels.
  44. .. _class_Sky_constant_RADIANCE_SIZE_256:
  45. .. rst-class:: classref-enumeration-constant
  46. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_256** = ``3``
  47. Radiance texture size is 256×256 pixels.
  48. .. _class_Sky_constant_RADIANCE_SIZE_512:
  49. .. rst-class:: classref-enumeration-constant
  50. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_512** = ``4``
  51. Radiance texture size is 512×512 pixels.
  52. .. _class_Sky_constant_RADIANCE_SIZE_1024:
  53. .. rst-class:: classref-enumeration-constant
  54. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_1024** = ``5``
  55. Radiance texture size is 1024×1024 pixels.
  56. \ **Note:** :ref:`RADIANCE_SIZE_1024<class_Sky_constant_RADIANCE_SIZE_1024>` is not exposed in the inspector as it is known to cause GPU hangs on certain systems.
  57. .. _class_Sky_constant_RADIANCE_SIZE_2048:
  58. .. rst-class:: classref-enumeration-constant
  59. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_2048** = ``6``
  60. Radiance texture size is 2048×2048 pixels.
  61. \ **Note:** :ref:`RADIANCE_SIZE_2048<class_Sky_constant_RADIANCE_SIZE_2048>` is not exposed in the inspector as it is known to cause GPU hangs on certain systems.
  62. .. _class_Sky_constant_RADIANCE_SIZE_MAX:
  63. .. rst-class:: classref-enumeration-constant
  64. :ref:`RadianceSize<enum_Sky_RadianceSize>` **RADIANCE_SIZE_MAX** = ``7``
  65. Represents the size of the :ref:`RadianceSize<enum_Sky_RadianceSize>` enum.
  66. .. rst-class:: classref-section-separator
  67. ----
  68. .. rst-class:: classref-descriptions-group
  69. Property Descriptions
  70. ---------------------
  71. .. _class_Sky_property_radiance_size:
  72. .. rst-class:: classref-property
  73. :ref:`RadianceSize<enum_Sky_RadianceSize>` **radiance_size** = ``2``
  74. .. rst-class:: classref-property-setget
  75. - void **set_radiance_size** **(** :ref:`RadianceSize<enum_Sky_RadianceSize>` value **)**
  76. - :ref:`RadianceSize<enum_Sky_RadianceSize>` **get_radiance_size** **(** **)**
  77. The **Sky**'s radiance map size. The higher the radiance map size, the more detailed the lighting from the **Sky** will be.
  78. See :ref:`RadianceSize<enum_Sky_RadianceSize>` constants for values.
  79. \ **Note:** You will only benefit from high radiance sizes if you have perfectly sharp reflective surfaces in your project and are not using :ref:`ReflectionProbe<class_ReflectionProbe>`\ s or :ref:`GIProbe<class_GIProbe>`\ s. For most projects, keeping :ref:`radiance_size<class_Sky_property_radiance_size>` to the default value is the best compromise between visuals and performance. Be careful when using high radiance size values as these can cause crashes on low-end GPUs.
  80. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  81. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  82. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  83. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`