ProjectorLightNode.html 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ProjectorLightNode - 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="Node.html">Node</a> → <a href="LightingNode.html">LightingNode</a> → <a href="AnalyticLightNode.html">AnalyticLightNode</a> → <a href="SpotLightNode.html">SpotLightNode</a> → </p>
  13. <h1 translate="no">ProjectorLightNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>An implementation of a projector light node.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ProjectorLightNode" translate="no">new <a href="#ProjectorLightNode">ProjectorLightNode</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. </div>
  24. </div>
  25. <h2 class="subsection-title">Methods</h2>
  26. <h3 class="name name-method" id="getSpotAttenuation" translate="no">.<a href="#getSpotAttenuation">getSpotAttenuation</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>Overwrites the default implementation to compute projection attenuation.</p>
  30. </div>
  31. <table class="params">
  32. <tbody>
  33. <tr>
  34. <td class="name"><code>builder</code></td>
  35. <td class="description last"><p>The node builder.</p></td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. <dl class="details">
  40. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="SpotLightNode.html#getSpotAttenuation">SpotLightNode#getSpotAttenuation</a></dt>
  41. </dl>
  42. <dl class="details">
  43. <dt class="tag-returns"><strong>Returns:</strong> The spot attenuation.</dt>
  44. </dl>
  45. </div>
  46. <h2 class="subsection-title">Source</h2>
  47. <p>
  48. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/lighting/ProjectorLightNode.js" target="_blank" rel="noopener" translate="no">src/nodes/lighting/ProjectorLightNode.js</a>
  49. </p>
  50. </article>
  51. </section>
  52. <script src="../scripts/linenumber.js"></script>
  53. <script src="../scripts/page.js"></script>
  54. </body>
  55. </html>
粤ICP备19079148号