[page:Object3D] → [page:Light] →
[name]
A light source positioned directly above the scene, with color fading from the
sky color to the ground color.
This light cannot be used to cast shadows.
Example
[example:webgl_lights_hemisphere lights / hemisphere ]
[example:misc_controls_pointerlock controls / pointerlock ]
[example:webgl_decals decals ]
[example:webgl_loader_collada_kinematics loader / collada / kinematics ]
[example:webgl_materials_lightmap materials / lightmap ]
[example:webgl_shaders_ocean shaders / ocean ]
var light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
scene.add( light );
Constructor
[name]( [param:Integer skyColor], [param:Integer groundColor], [param:Float intensity] )
[page:Integer skyColor] - (optional) hexadecimal color of the sky. Default is 0xffffff.
[page:Integer groundColor] - (optional) hexadecimal color of the ground. Default is 0xffffff.
[page:Float intensity] - (optional) numeric value of the light's strength/intensity. Default is 1.
Creates a new [name].
Properties
See the base [page:Light Light] class for common properties.
[property:Boolean castShadow]
This is set to *undefined* in the constructor as hemisphere lights cannot cast shadows.
[property:Float color]
The light's sky color, as passed in the constructor.
Default is a new [page:Color] set to white (0xffffff).
[property:Float groundColor]
The light's ground color, as passed in the constructor.
Default is a new [page:Color] set to white (0xffffff).
[property:Boolean isHemisphereLight]
Used to check whether this or derived classes are hemisphere lights. Default is *true*.
You should not change this, as it used internally for optimisation.
[property:Vector3 position]
This is set equal to [page:Object3D.DefaultUp] (0, 1, 0), so that the light shines from the top down.
Methods
See the base [page:Light Light] class for common methods.
[method:HemisphereLight copy]( [param:HemisphereLight source] )
Copies the value of [page:.color color], [page:.intensity intensity] and
[page:.groundColor groundColor] from the [page:Light source] light into this one.
Source
[link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]