RectAreaLightTexturesLib.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>RectAreaLightTexturesLib - 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. <h1 translate="no">RectAreaLightTexturesLib</h1>
  13. <section>
  14. <header>
  15. <div class="class-description"><p>Texture library for <a href="RectAreaLight.html">RectAreaLight</a>. This class holds the LTC BRDF data
  16. in data textures for further use in the renderer.</p>
  17. <p>Reference: Real-Time Polygonal-Light Shading with Linearly Transformed Cosines
  18. by Eric Heitz, Jonathan Dupuy, Stephen Hill and David Neubelt. <a href="https://github.com/selfshadow/ltc_code/">Code</a>.</p>
  19. <p>NOTE: This is a temporary location for the BRDF approximation texture data
  20. based off of Eric Heitz's work (see citation). BRDF data for
  21. <code>RectAreaLight</code> is currently approximated using a precomputed texture
  22. of roughly 80kb in size. The hope is to find a better way to include
  23. the large texture data before including the full RectAreaLight implementation
  24. in the main build files.</p></div>
  25. </header>
  26. <article>
  27. <h2 class="subsection-title">Import</h2>
  28. <p><span translate="no">RectAreaLightTexturesLib</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
  29. <pre><code class="language-js">import { RectAreaLightTexturesLib } from 'three/addons/lights/RectAreaLightTexturesLib.js';</code></pre>
  30. <div class="container-overview">
  31. <div class="method">
  32. </div>
  33. </div>
  34. <h2 class="subsection-title">Properties</h2>
  35. <div class="member">
  36. <h3 class="name" id=".LTC_FLOAT_1" translate="no">.<a href="#.LTC_FLOAT_1">LTC_FLOAT_1</a><span class="type-signature"> : <a href="DataTexture.html">DataTexture</a></span> </h3>
  37. <div class="description">
  38. <p>The first LTC FP32 data texture.<br/>Default is <code>null</code>.</p>
  39. </div>
  40. </div>
  41. <div class="member">
  42. <h3 class="name" id=".LTC_FLOAT_2" translate="no">.<a href="#.LTC_FLOAT_2">LTC_FLOAT_2</a><span class="type-signature"> : <a href="DataTexture.html">DataTexture</a></span> </h3>
  43. <div class="description">
  44. <p>The second LTC FP32 data texture.<br/>Default is <code>null</code>.</p>
  45. </div>
  46. </div>
  47. <div class="member">
  48. <h3 class="name" id=".LTC_HALF_1" translate="no">.<a href="#.LTC_HALF_1">LTC_HALF_1</a><span class="type-signature"> : <a href="DataTexture.html">DataTexture</a></span> </h3>
  49. <div class="description">
  50. <p>The first LTC FP16 data texture.<br/>Default is <code>null</code>.</p>
  51. </div>
  52. </div>
  53. <div class="member">
  54. <h3 class="name" id=".LTC_HALF_2" translate="no">.<a href="#.LTC_HALF_2">LTC_HALF_2</a><span class="type-signature"> : <a href="DataTexture.html">DataTexture</a></span> </h3>
  55. <div class="description">
  56. <p>The second LTC FP16 data texture.<br/>Default is <code>null</code>.</p>
  57. </div>
  58. </div>
  59. <h2 class="subsection-title">Static Methods</h2>
  60. <h3 class="name name-method" id=".init" translate="no">.<a href="#.init">init</a><span class="signature">()</span><span class="type-signature"> : <a href="RectAreaLightTexturesLib.html">RectAreaLightTexturesLib</a></span> </h3>
  61. <div class="method">
  62. <div class="description">
  63. <p>Inits the texture library.</p>
  64. </div>
  65. <dl class="details">
  66. <dt class="tag-returns"><strong>Returns:</strong> </dt>
  67. </dl>
  68. </div>
  69. <h2 class="subsection-title">Source</h2>
  70. <p>
  71. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/RectAreaLightTexturesLib.js" target="_blank" rel="noopener" translate="no">examples/jsm/lights/RectAreaLightTexturesLib.js</a>
  72. </p>
  73. </article>
  74. </section>
  75. <script src="../scripts/linenumber.js"></script>
  76. <script src="../scripts/page.js"></script>
  77. </body>
  78. </html>
粤ICP备19079148号