Files
godot-docs-l10n/classes/zh_CN/class_panoramaskymaterial.rst

88 lines
3.5 KiB
ReStructuredText
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/4.2/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/4.2/doc/classes/PanoramaSkyMaterial.xml.
.. _class_PanoramaSkyMaterial:
PanoramaSkyMaterial
===================
**继承:** :ref:`Material<class_Material>` **<** :ref:`Resource<class_Resource>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
:ref:`Sky<class_Sky>` 提供特殊纹理的材质,通常是 HDR 全景图。
.. rst-class:: classref-introduction-group
描述
----
:ref:`Sky<class_Sky>` 中引用的用于绘制背景的资源。\ **PanoramaSkyMaterial** 的功能类似于其他引擎的天空盒,区别在于它使用的是等距圆柱投影的天空贴图而不是 :ref:`Cubemap<class_Cubemap>`\ 。
强烈建议使用 HDR 全景图能够得到准确、高质量的反射。为此Godot 支持 Radiance HDR\ ``.hdr``\ )和 OpenEXR\ ``.exr``\ )图像格式。
你可以使用\ `这个工具 <https://danilw.github.io/GLSL-howto/cubemap_to_panorama_js/cubemap_to_panorama.html>`__\ 将立方体贴图转换为等距圆柱投影的天空贴图。
.. rst-class:: classref-reftable-group
属性
----
.. table::
:widths: auto
+-----------------------------------+--------------------------------------------------------------+----------+
| :ref:`bool<class_bool>` | :ref:`filter<class_PanoramaSkyMaterial_property_filter>` | ``true`` |
+-----------------------------------+--------------------------------------------------------------+----------+
| :ref:`Texture2D<class_Texture2D>` | :ref:`panorama<class_PanoramaSkyMaterial_property_panorama>` | |
+-----------------------------------+--------------------------------------------------------------+----------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
属性说明
--------
.. _class_PanoramaSkyMaterial_property_filter:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **filter** = ``true``
.. rst-class:: classref-property-setget
- void **set_filtering_enabled** **(** :ref:`bool<class_bool>` value **)**
- :ref:`bool<class_bool>` **is_filtering_enabled** **(** **)**
布尔值,用于确定背景纹理是否应被过滤。
.. rst-class:: classref-item-separator
----
.. _class_PanoramaSkyMaterial_property_panorama:
.. rst-class:: classref-property
:ref:`Texture2D<class_Texture2D>` **panorama**
.. rst-class:: classref-property-setget
- void **set_panorama** **(** :ref:`Texture2D<class_Texture2D>` value **)**
- :ref:`Texture2D<class_Texture2D>` **get_panorama** **(** **)**
应用于该 **PanoramaSkyMaterial**:ref:`Texture2D<class_Texture2D>`\ 。
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
.. |const| replace:: :abbr:`const (本方法没有副作用。不会修改该实例的任何成员变量。)`
.. |vararg| replace:: :abbr:`vararg (本方法除了在此处描述的参数外,还能够继续接受任意数量的参数。)`
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
.. |static| replace:: :abbr:`static (调用本方法无需实例,所以可以直接使用类名调用。)`
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效操作符。)`
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列标志构成的位掩码整数。)`