PanoramaSkyMaterial

继承: Material < Resource < RefCounted < Object

A material that provides a special texture to a Sky, usually an HDR panorama.

描述

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.

Using an HDR panorama is strongly recommended for accurate, high-quality reflections. Godot supports the Radiance HDR (.hdr) and OpenEXR (.exr) image formats for this purpose.

You can use this tool to convert a cubemap to an equirectangular sky map.

属性


属性说明

float energy_multiplier = 1.0

  • void set_energy_multiplier ( value: float )
  • float get_energy_multiplier ( )

The sky's overall brightness multiplier. Higher values result in a brighter sky.


bool filter = true

  • void set_filtering_enabled ( value: bool )
  • bool is_filtering_enabled ( )

A boolean value to determine if the background texture should be filtered or not.


Texture2D panorama

Texture2D to be applied to the PanoramaSkyMaterial.

1

本方法通常需要用户覆盖才能生效。

2

本方法无副作用,不会修改该实例的任何成员变量。

3

本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。

4

本方法用于构造某个类型。

5

调用本方法无需实例,可直接使用类名进行调用。

6

本方法描述的是使用本类型作为左操作数的有效运算符。

7

这个值是由下列位标志构成位掩码的整数。

8

无返回值。