| 1234567891011121314151617181920212223242526272829 |
- /**
- * @author alteredq / http://alteredqualia.com/
- */
- THREE.HemisphereLight = function ( skyColorHex, groundColorHex, intensity ) {
- THREE.Light.call( this, skyColorHex );
- this.position.set( 0, 100, 0 );
- this.groundColor = new THREE.Color( groundColorHex );
- this.intensity = ( intensity !== undefined ) ? intensity : 1;
- };
- THREE.HemisphereLight.prototype = Object.create( THREE.Light.prototype );
- THREE.HemisphereLight.prototype.clone = function () {
- var light = new THREE.PointLight();
- THREE.Light.prototype.clone.call( this, light );
- light.groundColor.copy( this.groundColor );
- light.intensity = this.intensity;
- return light;
- };
|