Skip to content

Sky

Updated

Cheap procedural atmosphere sky.

Type
comp-sky
Script class
SkyComponent
Per entity
One
Version
2.0.0

Read about it in Environment and sky: what it does, how to use it from a script, and examples.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
azimuth
distance 0 < x ≤ 100000
elevation
exposure 0 ≤ x ≤ 100
mieCoefficient 0 ≤ x ≤ 1
mieDirectionalG 0 ≤ x ≤ 1
rayleigh 0 ≤ x ≤ 64
turbidity 0 ≤ x ≤ 1000

Run it in the browser, read its scripts, and download it as an XR Creator project.

#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(SkyComponent);
if (component) log(component.props);
}