LUTPass.html 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LUTPass - 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="Pass.html">Pass</a> → <a href="ShaderPass.html">ShaderPass</a> → </p>
  13. <h1 translate="no">LUTPass</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Pass for color grading via lookup tables.</p></div>
  17. <h2>Code Example</h2>
  18. <div translate="no"><pre><code class="language-js">const lutPass = new LUTPass( { lut: lut.texture3D } );
  19. composer.addPass( lutPass );
  20. </code></pre></div>
  21. </header>
  22. <article>
  23. <h2 class="subsection-title">Import</h2>
  24. <p><span translate="no">LUTPass</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
  25. <pre><code class="language-js">import { LUTPass } from 'three/addons/postprocessing/LUTPass.js';</code></pre>
  26. <div class="container-overview">
  27. <h2>Constructor</h2>
  28. <h3 class="name name-method" id="LUTPass" translate="no">new <a href="#LUTPass">LUTPass</a><span class="signature">( options : <span class="param-type">Object</span> )</span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Constructs a LUT pass.</p>
  32. </div>
  33. <table class="params">
  34. <tbody>
  35. <tr>
  36. <td class="name"><code>options</code></td>
  37. <td class="description last"><p>The pass options.<br/>Default is <code>{}</code>.</p></td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Properties</h2>
  44. <div class="member">
  45. <h3 class="name" id="intensity" translate="no">.<a href="#intensity">intensity</a><span class="type-signature"> : number</span> </h3>
  46. <div class="description">
  47. <p>The intensity.<br/>Default is <code>1</code>.</p>
  48. </div>
  49. </div>
  50. <div class="member">
  51. <h3 class="name" id="lut" translate="no">.<a href="#lut">lut</a><span class="type-signature"> : <a href="Data3DTexture.html">Data3DTexture</a></span> </h3>
  52. <div class="description">
  53. <p>The LUT as a 3D texture.<br/>Default is <code>null</code>.</p>
  54. </div>
  55. </div>
  56. <h2 class="subsection-title">Source</h2>
  57. <p>
  58. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/postprocessing/LUTPass.js" target="_blank" rel="noopener" translate="no">examples/jsm/postprocessing/LUTPass.js</a>
  59. </p>
  60. </article>
  61. </section>
  62. <script src="../scripts/linenumber.js"></script>
  63. <script src="../scripts/page.js"></script>
  64. </body>
  65. </html>
粤ICP备19079148号