0.2.0-dev Download ZIP
24 lines ·1.6 KB Raw
| 1 | <?xml version="1.0" encoding="UTF-8" ?> |
| 2 | <class name="PanoramaSkyMaterial" inherits="Material" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> |
| 3 | <brief_description> |
| 4 | A material that provides a special texture to a [Sky], usually an HDR panorama. |
| 5 | </brief_description> |
| 6 | <description> |
| 7 | A resource referenced in a [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 [Cubemap]. |
| 8 | Using an HDR panorama is strongly recommended for accurate, high-quality reflections. Godot supports the Radiance HDR ([code].hdr[/code]) and OpenEXR ([code].exr[/code]) image formats for this purpose. |
| 9 | You can use [url=https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html]this tool[/url] to convert a cubemap to an equirectangular sky map. |
| 10 | </description> |
| 11 | <tutorials> |
| 12 | </tutorials> |
| 13 | <members> |
| 14 | <member name="energy_multiplier" type="float" setter="set_energy_multiplier" getter="get_energy_multiplier" default="1.0"> |
| 15 | The sky's overall brightness multiplier. Higher values result in a brighter sky. |
| 16 | </member> |
| 17 | <member name="filter" type="bool" setter="set_filtering_enabled" getter="is_filtering_enabled" default="true"> |
| 18 | A boolean value to determine if the background texture should be filtered or not. |
| 19 | </member> |
| 20 | <member name="panorama" type="Texture2D" setter="set_panorama" getter="get_panorama"> |
| 21 | [Texture2D] to be applied to the [PanoramaSkyMaterial]. |
| 22 | </member> |
| 23 | </members> |
| 24 | </class> |