babylon.hemisphericLight.js 724 B

123456789101112131415161718192021222324
  1. var BABYLON = BABYLON || {};
  2. (function () {
  3. BABYLON.HemisphericLight = function (name, direction, scene) {
  4. this.name = name;
  5. this.id = name;
  6. this.direction = direction;
  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.groundColor = new BABYLON.Color3(0.0, 0.0, 0.0);
  10. this._scene = scene;
  11. scene.lights.push(this);
  12. // Animations
  13. this.animations = [];
  14. };
  15. BABYLON.HemisphericLight.prototype = Object.create(BABYLON.Light.prototype);
  16. BABYLON.HemisphericLight.prototype.getShadowGenerator = function () {
  17. return null;
  18. };
  19. })();