DirectionalLight.d.ts 938 B

12345678910111213141516171819202122232425262728293031323334
  1. import { Color } from './../math/Color';
  2. import { Object3D } from './../core/Object3D';
  3. import { DirectionalLightShadow } from './DirectionalLightShadow';
  4. import { Light } from './Light';
  5. /**
  6. * Affects objects using MeshLambertMaterial or MeshPhongMaterial.
  7. *
  8. * @example
  9. * // White directional light at half intensity shining from the top.
  10. * var directionalLight = new THREE.DirectionalLight( 0xffffff, 0.5 );
  11. * directionalLight.position.set( 0, 1, 0 );
  12. * scene.add( directionalLight );
  13. *
  14. * @see <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/DirectionalLight.js">src/lights/DirectionalLight.js</a>
  15. */
  16. export class DirectionalLight extends Light {
  17. constructor( color?: Color | string | number, intensity?: number );
  18. /**
  19. * Target used for shadow camera orientation.
  20. */
  21. target: Object3D;
  22. /**
  23. * Light's intensity.
  24. * Default — 1.0.
  25. */
  26. intensity: number;
  27. shadow: DirectionalLightShadow;
  28. }
粤ICP备19079148号