ToneMappingNode.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ToneMappingNode - 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">ToneMappingNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node represents a tone mapping operation.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ToneMappingNode" translate="no">new <a href="#ToneMappingNode">ToneMappingNode</a><span class="signature">( toneMapping : <span class="param-type">number</span>, exposureNode : <span class="param-type"><a href="Node.html">Node</a></span>, colorNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new tone mapping node.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>toneMapping</strong>
  31. </td>
  32. <td class="description last">
  33. <p>The tone mapping type.</p>
  34. </td>
  35. </tr>
  36. <tr>
  37. <td class="name">
  38. <strong>exposureNode</strong>
  39. </td>
  40. <td class="description last">
  41. <p>The tone mapping exposure.</p>
  42. </td>
  43. </tr>
  44. <tr>
  45. <td class="name">
  46. <strong>colorNode</strong>
  47. </td>
  48. <td class="description last">
  49. <p>The color node to process.</p>
  50. <p>Default is <code>null</code>.</p>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>
  55. </div>
  56. </div>
  57. <h2 class="subsection-title">Properties</h2>
  58. <div class="member">
  59. <h3 class="name" id="colorNode" translate="no">.<a href="#colorNode">colorNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  60. <div class="description">
  61. <p>Represents the color to process.</p>
  62. <p>Default is <code>null</code>.</p>
  63. </div>
  64. </div>
  65. <div class="member">
  66. <h3 class="name" id="exposureNode" translate="no">.<a href="#exposureNode">exposureNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  67. <div class="description">
  68. <p>The tone mapping exposure.</p>
  69. <p>Default is <code>null</code>.</p>
  70. </div>
  71. </div>
  72. <h2 class="subsection-title">Methods</h2>
  73. <h3 class="name name-method" id="customCacheKey" translate="no">.<a href="#customCacheKey">customCacheKey</a><span class="signature">()</span><span class="type-signature"> : number</span> </h3>
  74. <div class="method">
  75. <div class="description">
  76. <p>Overwrites the default <code>customCacheKey()</code> implementation by including the tone
  77. mapping type into the cache key.</p>
  78. </div>
  79. <dl class="details">
  80. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="TempNode.html#customCacheKey">TempNode#customCacheKey</a></dt>
  81. </dl>
  82. <dl class="details">
  83. <dt class="tag-returns"><strong>Returns:</strong> The hash.</dt>
  84. </dl>
  85. </div>
  86. <h3 class="name name-method" id="getToneMapping" translate="no">.<a href="#getToneMapping">getToneMapping</a><span class="signature">()</span><span class="type-signature"> : number</span> </h3>
  87. <div class="method">
  88. <div class="description">
  89. <p>Gets the tone mapping type.</p>
  90. </div>
  91. <dl class="details">
  92. <dt class="tag-returns"><strong>Returns:</strong> The tone mapping type.</dt>
  93. </dl>
  94. </div>
  95. <h3 class="name name-method" id="setToneMapping" translate="no">.<a href="#setToneMapping">setToneMapping</a><span class="signature">( value : <span class="param-type">number</span> )</span><span class="type-signature"> : <a href="ToneMappingNode.html">ToneMappingNode</a></span> </h3>
  96. <div class="method">
  97. <div class="description">
  98. <p>Sets the tone mapping type.</p>
  99. </div>
  100. <table class="params">
  101. <tbody>
  102. <tr>
  103. <td class="name">
  104. <strong>value</strong>
  105. </td>
  106. <td class="description last">
  107. <p>The tone mapping type.</p>
  108. </td>
  109. </tr>
  110. </tbody>
  111. </table>
  112. <dl class="details">
  113. <dt class="tag-returns"><strong>Returns:</strong> A reference to this node.</dt>
  114. </dl>
  115. </div>
  116. <h2 class="subsection-title">Source</h2>
  117. <p>
  118. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/ToneMappingNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/ToneMappingNode.js</a>
  119. </p>
  120. </article>
  121. </section>
  122. <script src="../scripts/linenumber.js"></script>
  123. <script src="../scripts/page.js"></script>
  124. </body>
  125. </html>
粤ICP备19079148号