source: other-projects/playing-in-the-street/summer-2013/trunk/Playing-in-the-Street-WPF/Content/Web/mrdoob-three.js-4862f5f/src/lights/HemisphereLight.js@ 28897

Last change on this file since 28897 was 28897, checked in by davidb, 10 years ago

GUI front-end to server base plus web page content

File size: 658 bytes
Line 
1/**
2 * @author alteredq / http://alteredqualia.com/
3 */
4
5THREE.HemisphereLight = function ( skyColorHex, groundColorHex, intensity ) {
6
7 THREE.Light.call( this, skyColorHex );
8
9 this.position.set( 0, 100, 0 );
10
11 this.groundColor = new THREE.Color( groundColorHex );
12 this.intensity = ( intensity !== undefined ) ? intensity : 1;
13
14};
15
16THREE.HemisphereLight.prototype = Object.create( THREE.Light.prototype );
17
18THREE.HemisphereLight.prototype.clone = function () {
19
20 var light = new THREE.HemisphereLight();
21
22 THREE.Light.prototype.clone.call( this, light );
23
24 light.groundColor.copy( this.groundColor );
25 light.intensity = this.intensity;
26
27 return light;
28
29};
Note: See TracBrowser for help on using the repository browser.