Sky

Inherits: Resource < Reference < Object

Inherited By: PanoramaSky, ProceduralSky

The base class for PanoramaSky and ProceduralSky.

Description

The base class for PanoramaSky and ProceduralSky.

Properties

RadianceSize

radiance_size

2


Enumerations

enum RadianceSize:

RadianceSize RADIANCE_SIZE_32 = 0

Radiance texture size is 32×32 pixels.

RadianceSize RADIANCE_SIZE_64 = 1

Radiance texture size is 64×64 pixels.

RadianceSize RADIANCE_SIZE_128 = 2

Radiance texture size is 128×128 pixels.

RadianceSize RADIANCE_SIZE_256 = 3

Radiance texture size is 256×256 pixels.

RadianceSize RADIANCE_SIZE_512 = 4

Radiance texture size is 512×512 pixels.

RadianceSize RADIANCE_SIZE_1024 = 5

Radiance texture size is 1024×1024 pixels.

Note: RADIANCE_SIZE_1024 is not exposed in the inspector as it is known to cause GPU hangs on certain systems.

RadianceSize RADIANCE_SIZE_2048 = 6

Radiance texture size is 2048×2048 pixels.

Note: RADIANCE_SIZE_2048 is not exposed in the inspector as it is known to cause GPU hangs on certain systems.

RadianceSize RADIANCE_SIZE_MAX = 7

Represents the size of the RadianceSize enum.


Property Descriptions

RadianceSize radiance_size = 2

The Sky's radiance map size. The higher the radiance map size, the more detailed the lighting from the Sky will be.

See RadianceSize constants for values.

Note: You will only benefit from high radiance sizes if you have perfectly sharp reflective surfaces in your project and are not using ReflectionProbes or GIProbes. For most projects, keeping radiance_size to the default value is the best compromise between visuals and performance. Be careful when using high radiance size values as these can cause crashes on low-end GPUs.