class_panoramaskymaterial.rst 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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/PanoramaSkyMaterial.xml.
  6. .. _class_PanoramaSkyMaterial:
  7. PanoramaSkyMaterial
  8. ===================
  9. **Inherits:** :ref:`Material<class_Material>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  10. A :ref:`Material<class_Material>` used with :ref:`Sky<class_Sky>` to draw a background texture.
  11. Description
  12. -----------
  13. A resource referenced in a :ref:`Sky<class_Sky>` that is used to draw a background. The Panorama sky material functions similar to skyboxes in other engines, except it uses an equirectangular sky map instead of a cube map.
  14. 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.
  15. 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.
  16. Properties
  17. ----------
  18. +-----------------------------------+--------------------------------------------------------------+----------+
  19. | :ref:`bool<class_bool>` | :ref:`filter<class_PanoramaSkyMaterial_property_filter>` | ``true`` |
  20. +-----------------------------------+--------------------------------------------------------------+----------+
  21. | :ref:`Texture2D<class_Texture2D>` | :ref:`panorama<class_PanoramaSkyMaterial_property_panorama>` | |
  22. +-----------------------------------+--------------------------------------------------------------+----------+
  23. Property Descriptions
  24. ---------------------
  25. .. _class_PanoramaSkyMaterial_property_filter:
  26. - :ref:`bool<class_bool>` **filter**
  27. +-----------+------------------------------+
  28. | *Default* | ``true`` |
  29. +-----------+------------------------------+
  30. | *Setter* | set_filtering_enabled(value) |
  31. +-----------+------------------------------+
  32. | *Getter* | is_filtering_enabled() |
  33. +-----------+------------------------------+
  34. A boolean value to determine if the background texture should be filtered or not.
  35. ----
  36. .. _class_PanoramaSkyMaterial_property_panorama:
  37. - :ref:`Texture2D<class_Texture2D>` **panorama**
  38. +----------+---------------------+
  39. | *Setter* | set_panorama(value) |
  40. +----------+---------------------+
  41. | *Getter* | get_panorama() |
  42. +----------+---------------------+
  43. :ref:`Texture2D<class_Texture2D>` to be applied to the ``PanoramaSkyMaterial``.
  44. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  45. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  46. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  47. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  48. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  49. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`