SpotLight.html 691 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. [page:Object3D] → [page:Light] →
  2. <h1>[name]</h1>
  3. <div class="desc">todo</div>
  4. <h2>Example</h2>
  5. <code>// white spotlight shining from the side, casting shadow
  6. var spotLight = new THREE.SpotLight( 0xffffff );
  7. spotLight.position.set( 100, 1000, 100 );
  8. spotLight.castShadow = true;
  9. spotLight.shadowMapWidth = 1024;
  10. spotLight.shadowMapHeight = 1024;
  11. spotLight.shadowCameraNear = 500;
  12. spotLight.shadowCameraFar = 4000;
  13. spotLight.shadowCameraFov = 30;
  14. scene.add( spotLight );</code>
  15. <h2>Constructor</h2>
  16. <h3>[name]()</h3>
  17. <h2>Properties</h2>
  18. <h3>.[page:Vector3 todo]</h3>
  19. <h2>Source</h2>
  20. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]