ProjectorLight.html 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ProjectorLight - Three.js Docs</title>
  6. <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
  7. <script src="../scripts/highlight.min.js"></script>
  8. <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
  9. <link type="text/css" rel="stylesheet" href="../styles/page.css">
  10. </head>
  11. <body>
  12. <p class="inheritance" translate="no"><a href="EventDispatcher.html">EventDispatcher</a> → <a href="Object3D.html">Object3D</a> → <a href="Light.html">Light</a> → <a href="SpotLight.html">SpotLight</a> → </p>
  13. <h1 translate="no">ProjectorLight</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A projector light version of <a href="SpotLight.html">SpotLight</a>. Can only be used with <a href="WebGPURenderer.html">WebGPURenderer</a>.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ProjectorLight" translate="no">new <a href="#ProjectorLight">ProjectorLight</a><span class="signature">( color : <span class="param-type">number | Color | string</span>, intensity : <span class="param-type">number</span>, distance : <span class="param-type">number</span>, angle : <span class="param-type">number</span>, penumbra : <span class="param-type">number</span>, decay : <span class="param-type">number</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new projector light.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>color</code></td>
  30. <td class="description last"><p>The light's color.<br/>Default is <code>0xffffff</code>.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>intensity</code></td>
  34. <td class="description last"><p>The light's strength/intensity measured in candela (cd).<br/>Default is <code>1</code>.</p></td>
  35. </tr>
  36. <tr>
  37. <td class="name"><code>distance</code></td>
  38. <td class="description last"><p>Maximum range of the light. <code>0</code> means no limit.<br/>Default is <code>0</code>.</p></td>
  39. </tr>
  40. <tr>
  41. <td class="name"><code>angle</code></td>
  42. <td class="description last"><p>Maximum angle of light dispersion from its direction whose upper bound is <code>Math.PI/2</code>.<br/>Default is <code>Math.PI/3</code>.</p></td>
  43. </tr>
  44. <tr>
  45. <td class="name"><code>penumbra</code></td>
  46. <td class="description last"><p>Percent of the spotlight cone that is attenuated due to penumbra. Value range is <code>[0,1]</code>.<br/>Default is <code>0</code>.</p></td>
  47. </tr>
  48. <tr>
  49. <td class="name"><code>decay</code></td>
  50. <td class="description last"><p>The amount the light dims along the distance of the light.<br/>Default is <code>2</code>.</p></td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </div>
  55. </div>
  56. <h2 class="subsection-title">Properties</h2>
  57. <div class="member">
  58. <h3 class="name" id="aspect" translate="no">.<a href="#aspect">aspect</a><span class="type-signature"> : number</span> </h3>
  59. <div class="description">
  60. <p>Aspect ratio of the light. Set to <code>null</code> to use the texture aspect ratio.<br/>Default is <code>null</code>.</p>
  61. </div>
  62. </div>
  63. <h2 class="subsection-title">Source</h2>
  64. <p>
  65. <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/webgpu/ProjectorLight.js" target="_blank" rel="noopener" translate="no">src/lights/webgpu/ProjectorLight.js</a>
  66. </p>
  67. </article>
  68. </section>
  69. <script src="../scripts/linenumber.js"></script>
  70. <script src="../scripts/page.js"></script>
  71. </body>
  72. </html>
粤ICP备19079148号