PointLight.html 925 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. [page:Object3D] → [page:Light] →
  2. <h1>[name]</h1>
  3. <div class="desc">
  4. Affects objects using [page:MeshLambertMaterial] or [page:MeshPhongMaterial].
  5. </div>
  6. <h2>Example</h2>
  7. <code>var light = new THREE.PointLight( 0xff0000, 1, 100 );
  8. light.position.set( 50, 50, 50 );
  9. scene.add( light );</code>
  10. <h2>Constructor</h2>
  11. <h3>[name]( [page:Float color], [page:Float intensity], [page:Float distance] )</h3>
  12. <h2>Properties</h2>
  13. <h3>.[page:Vector3 position]</h3>
  14. <div>
  15. Light's position.<br />
  16. Default — *new THREE.Vector3()*.
  17. </div>
  18. <h3>.[page:Float intensity]</h3>
  19. <div>
  20. Light's intensity.<br />
  21. Default - *1.0*.
  22. </div>
  23. <h3>.[page:Float distance]</h3>
  24. <div>
  25. If non-zero, light will attenuate linearly from maximum intensity at light *position* down to zero at *distance*.<br />
  26. Default — *0.0*.
  27. </div>
  28. <h2>Source</h2>
  29. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]