Fog.d.ts 816 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. import { Color } from './../math/Color';
  2. export interface IFog {
  3. name: string;
  4. color: Color;
  5. clone(): this;
  6. toJSON(): any;
  7. }
  8. /**
  9. * This class contains the parameters that define linear fog, i.e., that grows linearly denser with the distance.
  10. */
  11. export class Fog implements IFog {
  12. constructor( hex: number, near?: number, far?: number );
  13. name: string;
  14. /**
  15. * Fog color.
  16. */
  17. color: Color;
  18. /**
  19. * The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.
  20. */
  21. near: number;
  22. /**
  23. * The maximum distance at which fog stops being calculated and applied. Objects that are more than 'far' units away from the active camera won't be affected by fog.
  24. * Default is 1000.
  25. */
  26. far: number;
  27. clone(): this;
  28. toJSON(): any;
  29. }