提交 3ce4e909 编写于 作者: A alteredq

Added forgotten SpotLight.js

上级 77341c86
/**
* @author alteredq / http://alteredqualia.com/
*/
THREE.SpotLight = function ( hex, intensity, distance, castShadow ) {
THREE.Light.call( this, hex );
this.position = new THREE.Vector3( 0, 1, 0 );
this.target = new THREE.Object3D();
this.intensity = intensity || 1;
this.distance = distance || 0;
this.castShadow = castShadow !== undefined ? castShadow : false;
};
THREE.SpotLight.prototype = new THREE.Light();
THREE.SpotLight.prototype.constructor = THREE.SpotLight;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册