babylon.light.d.ts 707 B

123456789101112131415161718192021222324252627282930
  1. /// <reference path="../babylon.d.ts" />
  2. declare module BABYLON {
  3. class Light {
  4. name: string;
  5. id: string;
  6. diffuse: Color3;
  7. specular: Color3;
  8. private _scene: Scene;
  9. constructor(name: string, scene: Scene);
  10. intensity: number;
  11. isEnabled: bool;
  12. }
  13. class PointLight extends Light {
  14. position: Vector3;
  15. animations: Animation[];
  16. constructor(name: string, position: Vector3, scene: Scene);
  17. }
  18. class DirectionalLight extends Light {
  19. direction: Vector3;
  20. animations: Animation[];
  21. constructor(name: string, direction: Vector3, scene: Scene);
  22. }
  23. }