Scene.d.ts 906 B

1234567891011121314151617181920212223242526272829303132
  1. import { IFog } from './Fog';
  2. import { Material } from './../materials/Material';
  3. import { Object3D } from './../core/Object3D';
  4. import { Color } from '../math/Color';
  5. import { Texture } from '../textures/Texture';
  6. // Scenes /////////////////////////////////////////////////////////////////////
  7. /**
  8. * Scenes allow you to set up what and where is to be rendered by three.js. This is where you place objects, lights and cameras.
  9. */
  10. export class Scene extends Object3D {
  11. constructor();
  12. type: 'Scene';
  13. /**
  14. * A fog instance defining the type of fog that affects everything rendered in the scene. Default is null.
  15. */
  16. fog: IFog | null;
  17. /**
  18. * If not null, it will force everything in the scene to be rendered with that material. Default is null.
  19. */
  20. overrideMaterial: Material | null;
  21. autoUpdate: boolean;
  22. background: null | Color | Texture;
  23. toJSON( meta?: any ): any;
  24. dispose(): void;
  25. }