Fog.d.ts 852 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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: number | string, 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. readonly isFog: true;
  28. clone(): this;
  29. toJSON(): any;
  30. }
粤ICP备19079148号