24 lines
457 B
JavaScript
24 lines
457 B
JavaScript
/**
|
|
* @author mrdoob / http://mrdoob.com/
|
|
*/
|
|
|
|
THREE.AmbientLight = function ( color ) {
|
|
|
|
THREE.Light.call( this, color );
|
|
|
|
this.type = 'AmbientLight';
|
|
|
|
};
|
|
|
|
THREE.AmbientLight.prototype = Object.create( THREE.Light.prototype );
|
|
THREE.AmbientLight.prototype.constructor = THREE.AmbientLight;
|
|
|
|
THREE.AmbientLight.prototype.clone = function () {
|
|
|
|
var light = new THREE.AmbientLight();
|
|
|
|
THREE.Light.prototype.clone.call( this, light );
|
|
|
|
return light;
|
|
|
|
};
|