babylon.pointLight.js 640 B

1234567891011121314151617181920212223
  1. var BABYLON = BABYLON || {};
  2. (function () {
  3. BABYLON.PointLight = function (name, position, scene) {
  4. this.name = name;
  5. this.id = name;
  6. this.position = position;
  7. this.diffuse = new BABYLON.Color3(1.0, 1.0, 1.0);
  8. this.specular = new BABYLON.Color3(1.0, 1.0, 1.0);
  9. this._scene = scene;
  10. scene.lights.push(this);
  11. // Animations
  12. this.animations = [];
  13. };
  14. BABYLON.PointLight.prototype = Object.create(BABYLON.Light.prototype);
  15. BABYLON.PointLight.prototype.getShadowGenerator = function () {
  16. return null;
  17. };
  18. })();