module-GammaCorrectionShader.html 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>GammaCorrectionShader - 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">GammaCorrectionShader</h1>
  13. <section>
  14. <header>
  15. </header>
  16. <article>
  17. <h2 class="subsection-title">Import</h2>
  18. <p><span translate="no">GammaCorrectionShader</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>
  19. <pre><code class="language-js">import { GammaCorrectionShader } from 'three/addons/shaders/GammaCorrectionShader.js';</code></pre>
  20. <div class="container-overview">
  21. </div>
  22. <h2 class="subsection-title">Properties</h2>
  23. <div class="member">
  24. <h3 class="name" id="~GammaCorrectionShader" translate="no">.<a href="#~GammaCorrectionShader">GammaCorrectionShader</a><span class="type-signature"> : <a href="ShaderMaterial.html#~Shader">ShaderMaterial~Shader</a></span> <span class="type-signature">(inner, constant) </span></h3>
  25. <div class="description">
  26. <p>Gamma Correction Shader</p>
  27. <p>References:</p>
  28. <ul>
  29. <li><a href="http://en.wikipedia.org/wiki/gamma_correction" target="_blank" rel="noopener">http://en.wikipedia.org/wiki/gamma_correction</a>.</li>
  30. </ul>
  31. </div>
  32. </div>
  33. <h2 class="subsection-title">Source</h2>
  34. <p>
  35. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/shaders/GammaCorrectionShader.js" translate="no" target="_blank" rel="noopener">examples/jsm/shaders/GammaCorrectionShader.js</a>
  36. </p>
  37. </article>
  38. </section>
  39. <script src="../scripts/linenumber.js"></script>
  40. <script src="../scripts/page.js"></script>
  41. </body>
  42. </html>
粤ICP备19079148号