class_panoramasky.rst 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the PanoramaSky.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_PanoramaSky:
  6. PanoramaSky
  7. ===========
  8. **Inherits:** :ref:`Sky<class_Sky>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  9. A type of :ref:`Sky<class_Sky>` used to draw a background texture.
  10. Description
  11. -----------
  12. A resource referenced in an :ref:`Environment<class_Environment>` that is used to draw a background. The Panorama sky functions similar to skyboxes in other engines, except it uses an equirectangular sky map instead of a cube map.
  13. Using an HDR panorama is strongly recommended for accurate, high-quality reflections. Godot supports the Radiance HDR (``.hdr``) and OpenEXR (``.exr``) image formats for this purpose.
  14. You can use `this tool <https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html>`__ to convert a cube map to an equirectangular sky map.
  15. Properties
  16. ----------
  17. +-------------------------------+------------------------------------------------------+
  18. | :ref:`Texture<class_Texture>` | :ref:`panorama<class_PanoramaSky_property_panorama>` |
  19. +-------------------------------+------------------------------------------------------+
  20. Property Descriptions
  21. ---------------------
  22. .. _class_PanoramaSky_property_panorama:
  23. - :ref:`Texture<class_Texture>` **panorama**
  24. +----------+---------------------+
  25. | *Setter* | set_panorama(value) |
  26. +----------+---------------------+
  27. | *Getter* | get_panorama() |
  28. +----------+---------------------+
  29. :ref:`Texture<class_Texture>` to be applied to the PanoramaSky.
  30. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  31. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  32. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`