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.

PanoramaSkyMaterial

繼承: Material < Resource < RefCounted < Object

提供Sky特殊紋理的材質,通常是 HDR 全景圖。

說明

Environment 中引用的用於繪製背景的資源。全景天空的功能類似於其他引擎的天空盒,區別在於它使用的是等距圓柱投影的天空貼圖而不是立方體貼圖。

強烈建議使用 HDR 全景圖,能夠得到準確、高品質的反射。為此,Godot 支援 Radiance HDR(.hdr)和 OpenEXR(.exr)圖像格式。

你可以使用這個工具將立方體貼圖轉換為等距圓柱投影的天空貼圖。

屬性

float

energy_multiplier

1.0

bool

filter

true

Texture2D

panorama


屬性說明

float energy_multiplier = 1.0 🔗

  • void set_energy_multiplier(value: float)

  • float get_energy_multiplier()

天空整體亮度的乘數。數值越高,天空就越亮。


bool filter = true 🔗

  • void set_filtering_enabled(value: bool)

  • bool is_filtering_enabled()

布林值,用於確定背景紋理是否應被篩選。


Texture2D panorama 🔗

套用於該 PanoramaSkyMaterialTexture2D