Up to date
This page is up to date for Godot 4.2
.
If you still find outdated information, please open an issue.
PanoramaSkyMaterial¶
继承: Material < Resource < RefCounted < Object
为 Sky 提供特殊纹理的材质,通常是 HDR 全景图。
描述¶
在 Sky 中引用的用于绘制背景的资源。PanoramaSkyMaterial 的功能类似于其他引擎的天空盒,区别在于它使用的是等距圆柱投影的天空贴图而不是 Cubemap。
强烈建议使用 HDR 全景图,能够得到准确、高质量的反射。为此,Godot 支持 Radiance HDR(.hdr
)和 OpenEXR(.exr
)图像格式。
你可以使用这个工具将立方体贴图转换为等距圆柱投影的天空贴图。
属性¶
|
||
属性说明¶
bool filter = true
布尔值,用于确定背景纹理是否应被过滤。
Texture2D panorama
应用于该 PanoramaSkyMaterial 的 Texture2D。