Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
PanoramaSkyMaterial¶
继承: Material < Resource < RefCounted < Object
为 Sky 提供特殊纹理的材质,通常是 HDR 全景图。
描述¶
在 Sky 中引用的用于绘制背景的资源。PanoramaSkyMaterial 的功能类似于其他引擎的天空盒,区别在于它使用的是等距圆柱投影的天空贴图而不是 Cubemap。
强烈建议使用 HDR 全景图,能够得到准确、高质量的反射。为此,Godot 支持 Radiance HDR(.hdr
)和 OpenEXR(.exr
)图像格式。
你可以使用这个工具将立方体贴图转换为等距圆柱投影的天空贴图。
属性¶
|
||
属性说明¶
bool filter = true
布尔值,用于确定背景纹理是否应被过滤。
Texture2D panorama
应用于该 PanoramaSkyMaterial 的 Texture2D。