content/hifi-content/dave/walk-tools/walkTools/libraries/three.js/lights/AmbientLight.js
2022-02-13 22:49:05 +01:00

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;
};