SpotLight.html 978 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <script src="../../list.js"></script>
  6. <script src="../../page.js"></script>
  7. <link type="text/css" rel="stylesheet" href="../../page.css" />
  8. </head>
  9. <body>
  10. [page:Object3D] &rarr; [page:Light] &rarr;
  11. <h1>[name]</h1>
  12. <div class="desc">todo</div>
  13. <h2>Example</h2>
  14. <code>// white spotlight shining from the side, casting shadow
  15. var spotLight = new THREE.SpotLight( 0xffffff );
  16. spotLight.position.set( 100, 1000, 100 );
  17. spotLight.castShadow = true;
  18. spotLight.shadowMapWidth = 1024;
  19. spotLight.shadowMapHeight = 1024;
  20. spotLight.shadowCameraNear = 500;
  21. spotLight.shadowCameraFar = 4000;
  22. spotLight.shadowCameraFov = 30;
  23. scene.add( spotLight );</code>
  24. <h2>Constructor</h2>
  25. <h3>[name]()</h3>
  26. <h2>Properties</h2>
  27. <h3>.[page:Vector3 todo]</h3>
  28. <h2>Source</h2>
  29. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  30. </body>
  31. </html>