Sky
Sky background and environment radiance resource.
Stores a sky material, radiance update mode and requested radiance size. Assign it to Environment.Sky. Displaying the background requires BackgroundMode = Sky; map processing policy does not disable background sky() calls.
Declarations checked against C# SDK 1.0.0. Expand a name to see declarations and documentation.
Constructors1
SkyConstructor
public Sky();Creates a sky resource with no material, ProcessMode = Automatic and RadianceSize = Size256. For a visible background, assign a sky material, set Environment.Sky and select BackgroundMode = Sky.
Properties3
ProcessModeProperty
public Sky.ProcessModeEnum ProcessMode { get; set; }Radiance update/filtering policy, not the visible background draw rate. Automatic is renderer-selected; Quality prioritizes filtering quality, Incremental spreads filtering across frames and Realtime targets frequent changes. Current RD Realtime uses internal size 256.
RadianceSizeProperty
public Sky.RadianceSizeEnum RadianceSize { get; set; }Requested environment radiance detail: enum Size32 through Size2048, default Size256. This is not viewport resolution. Current RD Realtime warns and internally adjusts other sizes to 256; the resource getter stores the requested enum rather than confirming internal allocation.
SkyMaterialProperty
public Material SkyMaterial { get; set; }Material generating the sky and environment radiance. Use a sky material or a ShaderMaterial with shader_type sky. The resource retains the material; assignment does not switch Environment.BackgroundMode.
Methods6
GetMaterialMaterial
public Material GetMaterial();Material generating the sky and environment radiance. Use a sky material or a ShaderMaterial with shader_type sky. The resource retains the material; assignment does not switch Environment.BackgroundMode.
MaterialAssigned Material, or null when none is assigned.
GetProcessModeSky.ProcessModeEnum
public Sky.ProcessModeEnum GetProcessMode();Radiance update/filtering policy, not the visible background draw rate. Automatic is renderer-selected; Quality prioritizes filtering quality, Incremental spreads filtering across frames and Realtime targets frequent changes. Current RD Realtime uses internal size 256.
Sky.ProcessModeEnumRequested resource mode; Automatic does not report the selected internal policy.
GetRadianceSizeSky.RadianceSizeEnum
public Sky.RadianceSizeEnum GetRadianceSize();Requested environment radiance detail: enum Size32 through Size2048, default Size256. This is not viewport resolution. Current RD Realtime warns and internally adjusts other sizes to 256; the resource getter stores the requested enum rather than confirming internal allocation.
Sky.RadianceSizeEnumStored requested RadianceSizeEnum value.
SetMaterialvoid
public void SetMaterial(Material material);Material generating the sky and environment radiance. Use a sky material or a ShaderMaterial with shader_type sky. The resource retains the material; assignment does not switch Environment.BackgroundMode.
| Name | Type | Default |
|---|---|---|
material | Material | — |
materialSky material; null clears the assigned material.
SetProcessModevoid
public void SetProcessMode(Sky.ProcessModeEnum mode);Radiance update/filtering policy, not the visible background draw rate. Automatic is renderer-selected; Quality prioritizes filtering quality, Incremental spreads filtering across frames and Realtime targets frequent changes. Current RD Realtime uses internal size 256.
| Name | Type | Default |
|---|---|---|
mode | Sky.ProcessModeEnum | — |
modeEnvironment radiance update mode.
SetRadianceSizevoid
public void SetRadianceSize(Sky.RadianceSizeEnum size);Requested environment radiance detail: enum Size32 through Size2048, default Size256. This is not viewport resolution. Current RD Realtime warns and internally adjusts other sizes to 256; the resource getter stores the requested enum rather than confirming internal allocation.
| Name | Type | Default |
|---|---|---|
size | Sky.RadianceSizeEnum | — |
sizeA RadianceSizeEnum value, not an arbitrary pixel count.
Sky.ProcessModeEnum
| Value | Description |
|---|---|
Automatic = 0 | Automatically selects the appropriate process mode based on your sky shader. If your shader uses |
Incremental = 2 | Uses the same high quality importance sampling to process the radiance map as |
Quality = 1 | Uses high quality importance sampling to process the radiance map. In general, this results in much higher quality than |
Realtime = 3 | Uses the fast filtering algorithm to process the radiance map. In general this results in lower quality, but substantially faster run times. If you need better quality, but still need to update the sky every frame, consider turning on |
Sky.RadianceSizeEnum
| Value | Description |
|---|---|
Max = 7 | Represents the size of the |
Size1024 = 5 | Radiance texture size is 1024×1024 pixels. |
Size128 = 2 | Radiance texture size is 128×128 pixels. |
Size2048 = 6 | Radiance texture size is 2048×2048 pixels. |
Size256 = 3 | Radiance texture size is 256×256 pixels. |
Size32 = 0 | Radiance texture size is 32×32 pixels. |
Size512 = 4 | Radiance texture size is 512×512 pixels. |
Size64 = 1 | Radiance texture size is 64×64 pixels. |