| 123456789101112131415161718192021222324252627 |
- /**
- * @author mrdoob / http://mrdoob.com/
- * @author alteredq / http://alteredqualia.com/
- */
- THREE.Light = function ( color ) {
- THREE.Object3D.call( this );
- this.type = 'Light';
- this.color = new THREE.Color( color );
- };
- THREE.Light.prototype = Object.create( THREE.Object3D.prototype );
- THREE.Light.prototype.constructor = THREE.Light;
- THREE.Light.prototype.copy = function ( source ) {
-
- THREE.Object3D.prototype.copy.call( this, source );
-
- this.color.copy( source.color );
-
- return this;
- };
|