class_sky.rst 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  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 Sky.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_Sky:
  6. Sky
  7. ===
  8. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. **Inherited By:** :ref:`PanoramaSky<class_PanoramaSky>`, :ref:`ProceduralSky<class_ProceduralSky>`
  10. **Category:** Core
  11. Brief Description
  12. -----------------
  13. The base class for :ref:`PanoramaSky<class_PanoramaSky>` and :ref:`ProceduralSky<class_ProceduralSky>`.
  14. Properties
  15. ----------
  16. +--------------------------------------------+--------------------------------------------------------+
  17. | :ref:`RadianceSize<enum_Sky_RadianceSize>` | :ref:`radiance_size<class_Sky_property_radiance_size>` |
  18. +--------------------------------------------+--------------------------------------------------------+
  19. Enumerations
  20. ------------
  21. .. _enum_Sky_RadianceSize:
  22. .. _class_Sky_constant_RADIANCE_SIZE_32:
  23. .. _class_Sky_constant_RADIANCE_SIZE_64:
  24. .. _class_Sky_constant_RADIANCE_SIZE_128:
  25. .. _class_Sky_constant_RADIANCE_SIZE_256:
  26. .. _class_Sky_constant_RADIANCE_SIZE_512:
  27. .. _class_Sky_constant_RADIANCE_SIZE_1024:
  28. .. _class_Sky_constant_RADIANCE_SIZE_2048:
  29. .. _class_Sky_constant_RADIANCE_SIZE_MAX:
  30. enum **RadianceSize**:
  31. - **RADIANCE_SIZE_32** = **0** --- Radiance texture size is 32x32 pixels.
  32. - **RADIANCE_SIZE_64** = **1** --- Radiance texture size is 64x64 pixels.
  33. - **RADIANCE_SIZE_128** = **2** --- Radiance texture size is 128x128 pixels.
  34. - **RADIANCE_SIZE_256** = **3** --- Radiance texture size is 256x256 pixels.
  35. - **RADIANCE_SIZE_512** = **4** --- Radiance texture size is 512x512 pixels.
  36. - **RADIANCE_SIZE_1024** = **5** --- Radiance texture size is 1024x1024 pixels.
  37. - **RADIANCE_SIZE_2048** = **6** --- Radiance texture size is 2048x2048 pixels.
  38. - **RADIANCE_SIZE_MAX** = **7** --- Represents the size of the :ref:`RadianceSize<enum_Sky_RadianceSize>` enum.
  39. Description
  40. -----------
  41. The base class for :ref:`PanoramaSky<class_PanoramaSky>` and :ref:`ProceduralSky<class_ProceduralSky>`.
  42. Property Descriptions
  43. ---------------------
  44. .. _class_Sky_property_radiance_size:
  45. - :ref:`RadianceSize<enum_Sky_RadianceSize>` **radiance_size**
  46. +----------+--------------------------+
  47. | *Setter* | set_radiance_size(value) |
  48. +----------+--------------------------+
  49. | *Getter* | get_radiance_size() |
  50. +----------+--------------------------+
  51. The :ref:`Sky<class_Sky>`'s radiance map size.
  52. The higher the radiance map size, the more detailed the lighting from the :ref:`Sky<class_Sky>` will be.
  53. See :ref:`RadianceSize<enum_Sky_RadianceSize>` constants for values. Default size is :ref:`RADIANCE_SIZE_512<class_Sky_constant_RADIANCE_SIZE_512>`.