Lut3DNode.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  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" rel="noopener">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"><a href="Node.html">Node</a></span>, lutNode : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span>, size : <span class="param-type">number</span>, intensityNode : <span class="param-type"><a href="Node.html">Node</a>.&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">
  33. <strong>inputNode</strong>
  34. </td>
  35. <td class="description last">
  36. <p>The node that represents the input of the effect.</p>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="name">
  41. <strong>lutNode</strong>
  42. </td>
  43. <td class="description last">
  44. <p>A texture node that represents the lookup table.</p>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="name">
  49. <strong>size</strong>
  50. </td>
  51. <td class="description last">
  52. <p>The size of the lookup table.</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>intensityNode</strong>
  58. </td>
  59. <td class="description last">
  60. <p>Controls the intensity of the effect.</p>
  61. </td>
  62. </tr>
  63. </tbody>
  64. </table>
  65. </div>
  66. </div>
  67. <h2 class="subsection-title">Properties</h2>
  68. <div class="member">
  69. <h3 class="name" id="inputNode" translate="no">.<a href="#inputNode">inputNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  70. <div class="description">
  71. <p>The node that represents the input of the effect.</p>
  72. </div>
  73. </div>
  74. <div class="member">
  75. <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>
  76. <div class="description">
  77. <p>Controls the intensity of the effect.</p>
  78. </div>
  79. </div>
  80. <div class="member">
  81. <h3 class="name" id="lutNode" translate="no">.<a href="#lutNode">lutNode</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> </h3>
  82. <div class="description">
  83. <p>A texture node that represents the lookup table.</p>
  84. </div>
  85. </div>
  86. <div class="member">
  87. <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>
  88. <div class="description">
  89. <p>The size of the lookup table.</p>
  90. </div>
  91. </div>
  92. <h2 class="subsection-title">Methods</h2>
  93. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span><span class="type-signature"> : ShaderCallNodeInternal</span> </h3>
  94. <div class="method">
  95. <div class="description">
  96. <p>This method is used to setup the effect's TSL code.</p>
  97. </div>
  98. <table class="params">
  99. <tbody>
  100. <tr>
  101. <td class="name">
  102. <strong>builder</strong>
  103. </td>
  104. <td class="description last">
  105. <p>The current node builder.</p>
  106. </td>
  107. </tr>
  108. </tbody>
  109. </table>
  110. <dl class="details">
  111. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#setup">TempNode#setup</a></dt>
  112. </dl>
  113. </div>
  114. <h2 class="subsection-title">Source</h2>
  115. <p>
  116. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/tsl/display/Lut3DNode.js" translate="no" target="_blank" rel="noopener">examples/jsm/tsl/display/Lut3DNode.js</a>
  117. </p>
  118. </article>
  119. </section>
  120. <script src="../scripts/linenumber.js"></script>
  121. <script src="../scripts/page.js"></script>
  122. </body>
  123. </html>
粤ICP备19079148号