RectAreaLightTexturesLib.html 4.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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/" target="_blank" rel="noopener">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" rel="noopener">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.</p>
  39. <p>Default is <code>null</code>.</p>
  40. </div>
  41. </div>
  42. <div class="member">
  43. <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>
  44. <div class="description">
  45. <p>The second LTC FP32 data texture.</p>
  46. <p>Default is <code>null</code>.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <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>
  51. <div class="description">
  52. <p>The first LTC FP16 data texture.</p>
  53. <p>Default is <code>null</code>.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <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>
  58. <div class="description">
  59. <p>The second LTC FP16 data texture.</p>
  60. <p>Default is <code>null</code>.</p>
  61. </div>
  62. </div>
  63. <h2 class="subsection-title">Static Methods</h2>
  64. <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>
  65. <div class="method">
  66. <div class="description">
  67. <p>Inits the texture library.</p>
  68. </div>
  69. </div>
  70. <h2 class="subsection-title">Source</h2>
  71. <p>
  72. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/lights/RectAreaLightTexturesLib.js" translate="no" target="_blank" rel="noopener">examples/jsm/lights/RectAreaLightTexturesLib.js</a>
  73. </p>
  74. </article>
  75. </section>
  76. <script src="../scripts/linenumber.js"></script>
  77. <script src="../scripts/page.js"></script>
  78. </body>
  79. </html>
粤ICP备19079148号