[name] creates a ready to go sky environment for your scenes.
[name] is an add-on, and therefore must be imported explicitly. See [link:#manual/introduction/Installation Installation / Addons].
import { Sky } from 'three/addons/objects/Sky.js';
const sky = new Sky();
sky.scale.setScalar( 450000 );
const phi = MathUtils.degToRad( 90 );
const theta = MathUtils.degToRad( 180 );
const sunPosition = new Vector3().setFromSphericalCoords( 1, phi, theta );
sky.material.uniforms.sunPosition.value = sunPosition;
scene.add( sky );
[example:webgl_shaders_sky misc / objects / Sky ]
Create a new [name] instance.
[name] instance is a [page:Mesh] with a pre-defined [page:ShaderMaterial], so every property described here should be set using [page:Uniform]s.
Haziness of the [name].
For a more detailed explanation see: [link:https://en.wikipedia.org/wiki/Rayleigh_scattering Rayleigh scattering] .
[link:https://en.wikipedia.org/wiki/Mie_scattering Mie scattering] amount.
[link:https://en.wikipedia.org/wiki/Mie_scattering Mie scattering] direction.
The position of the sun.
The sun's elevation from the horizon, in degrees.
[link:https://github.com/mrdoob/three.js/blob/master/examples/jsm/objects/Sky.js examples/jsm/objects/Sky.js]