PointLight.d.ts 719 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { Color } from './../math/Color';
  2. import { Light } from './Light';
  3. import { PointLightShadow } from './PointLightShadow';
  4. /**
  5. * @example
  6. * var light = new THREE.PointLight( 0xff0000, 1, 100 );
  7. * light.position.set( 50, 50, 50 );
  8. * scene.add( light );
  9. */
  10. export class PointLight extends Light {
  11. constructor(
  12. color?: Color | string | number,
  13. intensity?: number,
  14. distance?: number,
  15. decay?: number
  16. );
  17. /*
  18. * Light's intensity.
  19. * Default - 1.0.
  20. */
  21. intensity: number;
  22. /**
  23. * If non-zero, light will attenuate linearly from maximum intensity at light position down to zero at distance.
  24. * Default - 0.0.
  25. */
  26. distance: number;
  27. decay: number;
  28. shadow: PointLightShadow;
  29. power: number;
  30. }
粤ICP备19079148号