Browse Source

Added forgotten SpotLight.js

alteredq 14 years ago
parent
commit
3ce4e90909
1 changed files with 20 additions and 0 deletions
  1. 20 0
      src/lights/SpotLight.js

+ 20 - 0
src/lights/SpotLight.js

@@ -0,0 +1,20 @@
+/**
+ * @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;