IESSpotLight.html 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>IESSpotLight - 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">IESSpotLight</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A IES 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="IESSpotLight" translate="no">new <a href="#IESSpotLight">IESSpotLight</a><span class="signature">( color : <span class="param-type">number | <a href="Color.html">Color</a> | 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 IES spot light.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>color</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The light's color.</p>
  34. <p>Default is <code>0xffffff</code>.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>intensity</strong>
  40. </td>
  41. <td class="description last">
  42. <p>The light's strength/intensity measured in candela (cd).</p>
  43. <p>Default is <code>1</code>.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>distance</strong>
  49. </td>
  50. <td class="description last">
  51. <p>Maximum range of the light. <code>0</code> means no limit.</p>
  52. <p>Default is <code>0</code>.</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>angle</strong>
  58. </td>
  59. <td class="description last">
  60. <p>Maximum angle of light dispersion from its direction whose upper bound is <code>Math.PI/2</code>.</p>
  61. <p>Default is <code>Math.PI/3</code>.</p>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="name">
  66. <strong>penumbra</strong>
  67. </td>
  68. <td class="description last">
  69. <p>Percent of the spotlight cone that is attenuated due to penumbra. Value range is <code>[0,1]</code>.</p>
  70. <p>Default is <code>0</code>.</p>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="name">
  75. <strong>decay</strong>
  76. </td>
  77. <td class="description last">
  78. <p>The amount the light dims along the distance of the light.</p>
  79. <p>Default is <code>2</code>.</p>
  80. </td>
  81. </tr>
  82. </tbody>
  83. </table>
  84. </div>
  85. </div>
  86. <h2 class="subsection-title">Properties</h2>
  87. <div class="member">
  88. <h3 class="name" id="iesMap" translate="no">.<a href="#iesMap">iesMap</a><span class="type-signature"> : <a href="Texture.html">Texture</a></span> </h3>
  89. <div class="description">
  90. <p>TODO</p>
  91. <p>Default is <code>null</code>.</p>
  92. </div>
  93. </div>
  94. <h2 class="subsection-title">Source</h2>
  95. <p>
  96. <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/webgpu/IESSpotLight.js" translate="no" target="_blank" rel="noopener">src/lights/webgpu/IESSpotLight.js</a>
  97. </p>
  98. </article>
  99. </section>
  100. <script src="../scripts/linenumber.js"></script>
  101. <script src="../scripts/page.js"></script>
  102. </body>
  103. </html>
粤ICP备19079148号