pandemonium_engine_docs/classes/class_panoramasky.rst

51 lines
2.1 KiB
ReStructuredText

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/3.5/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/3.5/doc/classes/PanoramaSky.xml.
.. _class_PanoramaSky:
PanoramaSky
===========
**Inherits:** :ref:`Sky<class_Sky>` **<** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
A type of :ref:`Sky<class_Sky>` used to draw a background texture.
Description
-----------
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.
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.
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.
Properties
----------
+-------------------------------+------------------------------------------------------+
| :ref:`Texture<class_Texture>` | :ref:`panorama<class_PanoramaSky_property_panorama>` |
+-------------------------------+------------------------------------------------------+
Property Descriptions
---------------------
.. _class_PanoramaSky_property_panorama:
- :ref:`Texture<class_Texture>` **panorama**
+----------+---------------------+
| *Setter* | set_panorama(value) |
+----------+---------------------+
| *Getter* | get_panorama() |
+----------+---------------------+
:ref:`Texture<class_Texture>` to be applied to the PanoramaSky.
.. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
.. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`