| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>IESSpotLight - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <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>
- <h1 translate="no">IESSpotLight</h1>
- <section>
- <header>
- <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>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="IESSpotLight" translate="no">new <a href="#IESSpotLight">IESSpotLight</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>
- <div class="method">
- <div class="description">
- <p>Constructs a new IES spot light.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>color</code></td>
- <td class="description last"><p>The light's color.<br/>Default is <code>0xffffff</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>intensity</code></td>
- <td class="description last"><p>The light's strength/intensity measured in candela (cd).<br/>Default is <code>1</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>distance</code></td>
- <td class="description last"><p>Maximum range of the light. <code>0</code> means no limit.<br/>Default is <code>0</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>angle</code></td>
- <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>
- </tr>
- <tr>
- <td class="name"><code>penumbra</code></td>
- <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>
- </tr>
- <tr>
- <td class="name"><code>decay</code></td>
- <td class="description last"><p>The amount the light dims along the distance of the light.<br/>Default is <code>2</code>.</p></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="iesMap" translate="no">.<a href="#iesMap">iesMap</a><span class="type-signature"> : <a href="Texture.html">Texture</a></span> </h3>
- <div class="description">
- <p>TODO<br/>Default is <code>null</code>.</p>
- </div>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/lights/webgpu/IESSpotLight.js" target="_blank" rel="noopener" translate="no">src/lights/webgpu/IESSpotLight.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|