class_panoramaskymaterial.rst 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  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 material that provides a special texture to a :ref:`Sky<class_Sky>`, usually an HDR panorama.
  11. .. rst-class:: classref-introduction-group
  12. Description
  13. -----------
  14. A resource referenced in a :ref:`Sky<class_Sky>` that is used to draw a background. **PanoramaSkyMaterial** functions similar to skyboxes in other engines, except it uses an equirectangular sky map instead of a :ref:`Cubemap<class_Cubemap>`.
  15. 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.
  16. You can use `this tool <https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html>`__ to convert a cubemap to an equirectangular sky map.
  17. .. rst-class:: classref-reftable-group
  18. Properties
  19. ----------
  20. .. table::
  21. :widths: auto
  22. +-----------------------------------+--------------------------------------------------------------------------------+----------+
  23. | :ref:`float<class_float>` | :ref:`energy_multiplier<class_PanoramaSkyMaterial_property_energy_multiplier>` | ``1.0`` |
  24. +-----------------------------------+--------------------------------------------------------------------------------+----------+
  25. | :ref:`bool<class_bool>` | :ref:`filter<class_PanoramaSkyMaterial_property_filter>` | ``true`` |
  26. +-----------------------------------+--------------------------------------------------------------------------------+----------+
  27. | :ref:`Texture2D<class_Texture2D>` | :ref:`panorama<class_PanoramaSkyMaterial_property_panorama>` | |
  28. +-----------------------------------+--------------------------------------------------------------------------------+----------+
  29. .. rst-class:: classref-section-separator
  30. ----
  31. .. rst-class:: classref-descriptions-group
  32. Property Descriptions
  33. ---------------------
  34. .. _class_PanoramaSkyMaterial_property_energy_multiplier:
  35. .. rst-class:: classref-property
  36. :ref:`float<class_float>` **energy_multiplier** = ``1.0`` :ref:`🔗<class_PanoramaSkyMaterial_property_energy_multiplier>`
  37. .. rst-class:: classref-property-setget
  38. - |void| **set_energy_multiplier**\ (\ value\: :ref:`float<class_float>`\ )
  39. - :ref:`float<class_float>` **get_energy_multiplier**\ (\ )
  40. The sky's overall brightness multiplier. Higher values result in a brighter sky.
  41. .. rst-class:: classref-item-separator
  42. ----
  43. .. _class_PanoramaSkyMaterial_property_filter:
  44. .. rst-class:: classref-property
  45. :ref:`bool<class_bool>` **filter** = ``true`` :ref:`🔗<class_PanoramaSkyMaterial_property_filter>`
  46. .. rst-class:: classref-property-setget
  47. - |void| **set_filtering_enabled**\ (\ value\: :ref:`bool<class_bool>`\ )
  48. - :ref:`bool<class_bool>` **is_filtering_enabled**\ (\ )
  49. A boolean value to determine if the background texture should be filtered or not.
  50. .. rst-class:: classref-item-separator
  51. ----
  52. .. _class_PanoramaSkyMaterial_property_panorama:
  53. .. rst-class:: classref-property
  54. :ref:`Texture2D<class_Texture2D>` **panorama** :ref:`🔗<class_PanoramaSkyMaterial_property_panorama>`
  55. .. rst-class:: classref-property-setget
  56. - |void| **set_panorama**\ (\ value\: :ref:`Texture2D<class_Texture2D>`\ )
  57. - :ref:`Texture2D<class_Texture2D>` **get_panorama**\ (\ )
  58. :ref:`Texture2D<class_Texture2D>` to be applied to the **PanoramaSkyMaterial**.
  59. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  60. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  61. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  62. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  63. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  64. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
  65. .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
  66. .. |void| replace:: :abbr:`void (No return value.)`