Fog.d.ts 899 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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( color: Color | number | string, near?: number, far?: number );
  13. /**
  14. * @default ''
  15. */
  16. name: string;
  17. /**
  18. * Fog color.
  19. */
  20. color: Color;
  21. /**
  22. * The minimum distance to start applying fog. Objects that are less than 'near' units from the active camera won't be affected by fog.
  23. * @default 1
  24. */
  25. near: number;
  26. /**
  27. * 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.
  28. * @default 1000
  29. */
  30. far: number;
  31. readonly isFog: true;
  32. clone(): this;
  33. toJSON(): any;
  34. }