Lut3DNode.html 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Lut3DNode - 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="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">Lut3DNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A post processing node for color grading via lookup tables.</p></div>
  17. </header>
  18. <article>
  19. <h2 class="subsection-title">Import</h2>
  20. <p><span translate="no">Lut3DNode</span> is an addon, and must be imported explicitly, see <a href="https://threejs.org/manual/#en/installation" target="_blank">Installation#Addons</a>.</p>
  21. <pre><code class="language-js">import { lut3D } from 'three/addons/tsl/display/Lut3DNode.js';</code></pre>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="Lut3DNode" translate="no">new <a href="#Lut3DNode">Lut3DNode</a><span class="signature">( inputNode : <span class="param-type">Node</span>, lutNode : <span class="param-type">TextureNode</span>, size : <span class="param-type">number</span>, intensityNode : <span class="param-type">Node.&lt;float></span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new LUT node.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name"><code>inputNode</code></td>
  33. <td class="description last"><p>The node that represents the input of the effect.</p></td>
  34. </tr>
  35. <tr>
  36. <td class="name"><code>lutNode</code></td>
  37. <td class="description last"><p>A texture node that represents the lookup table.</p></td>
  38. </tr>
  39. <tr>
  40. <td class="name"><code>size</code></td>
  41. <td class="description last"><p>The size of the lookup table.</p></td>
  42. </tr>
  43. <tr>
  44. <td class="name"><code>intensityNode</code></td>
  45. <td class="description last"><p>Controls the intensity of the effect.</p></td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Properties</h2>
  52. <div class="member">
  53. <h3 class="name" id="inputNode" translate="no">.<a href="#inputNode">inputNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  54. <div class="description">
  55. <p>The node that represents the input of the effect.</p>
  56. </div>
  57. </div>
  58. <div class="member">
  59. <h3 class="name" id="intensityNode" translate="no">.<a href="#intensityNode">intensityNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  60. <div class="description">
  61. <p>Controls the intensity of the effect.</p>
  62. </div>
  63. </div>
  64. <div class="member">
  65. <h3 class="name" id="lutNode" translate="no">.<a href="#lutNode">lutNode</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> </h3>
  66. <div class="description">
  67. <p>A texture node that represents the lookup table.</p>
  68. </div>
  69. </div>
  70. <div class="member">
  71. <h3 class="name" id="size" translate="no">.<a href="#size">size</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a>.&lt;float></span> </h3>
  72. <div class="description">
  73. <p>The size of the lookup table.</p>
  74. </div>
  75. </div>
  76. <h2 class="subsection-title">Methods</h2>
  77. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span><span class="type-signature"> : ShaderCallNodeInternal</span> </h3>
  78. <div class="method">
  79. <div class="description">
  80. <p>This method is used to setup the effect's TSL code.</p>
  81. </div>
  82. <table class="params">
  83. <tbody>
  84. <tr>
  85. <td class="name"><code>builder</code></td>
  86. <td class="description last"><p>The current node builder.</p></td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <dl class="details">
  91. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#setup">TempNode#setup</a></dt>
  92. </dl>
  93. <dl class="details">
  94. <dt class="tag-returns"><strong>Returns:</strong> </dt>
  95. </dl>
  96. </div>
  97. <h2 class="subsection-title">Source</h2>
  98. <p>
  99. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/Lut3DNode.js" target="_blank" rel="noopener" translate="no">examples/jsm/tsl/display/Lut3DNode.js</a>
  100. </p>
  101. </article>
  102. </section>
  103. <script src="../scripts/linenumber.js"></script>
  104. <script src="../scripts/page.js"></script>
  105. </body>
  106. </html>
粤ICP备19079148号