FXAAPass.html 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>FXAAPass - 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">FXAAPass</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A pass for applying FXAA.</p></div>
  17. <h2>Code Example</h2>
  18. <div translate="no"><pre><code class="language-js">const fxaaPass = new FXAAPass();
  19. composer.addPass( fxaaPass );
  20. </code></pre></div>
  21. </header>
  22. <article>
  23. <h2 class="subsection-title">Import</h2>
  24. <p><span translate="no">FXAAPass</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>
  25. <pre><code class="language-js">import { FXAAPass } from 'three/addons/postprocessing/FXAAPass.js';</code></pre>
  26. <div class="container-overview">
  27. <h2>Constructor</h2>
  28. <h3 class="name name-method" id="FXAAPass" translate="no">new <a href="#FXAAPass">FXAAPass</a><span class="signature">()</span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Constructs a new FXAA pass.</p>
  32. </div>
  33. </div>
  34. </div>
  35. <h2 class="subsection-title">Methods</h2>
  36. <h3 class="name name-method" id="setSize" translate="no">.<a href="#setSize">setSize</a><span class="signature">( width : <span class="param-type">number</span>, height : <span class="param-type">number</span> )</span> </h3>
  37. <div class="method">
  38. <div class="description">
  39. <p>Sets the size of the pass.</p>
  40. </div>
  41. <table class="params">
  42. <tbody>
  43. <tr>
  44. <td class="name">
  45. <strong>width</strong>
  46. </td>
  47. <td class="description last">
  48. <p>The width to set.</p>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="name">
  53. <strong>height</strong>
  54. </td>
  55. <td class="description last">
  56. <p>The height to set.</p>
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. <dl class="details">
  62. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="ShaderPass.html#setSize">ShaderPass#setSize</a></dt>
  63. </dl>
  64. </div>
  65. <h2 class="subsection-title">Source</h2>
  66. <p>
  67. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/postprocessing/FXAAPass.js" translate="no" target="_blank" rel="noopener">examples/jsm/postprocessing/FXAAPass.js</a>
  68. </p>
  69. </article>
  70. </section>
  71. <script src="../scripts/linenumber.js"></script>
  72. <script src="../scripts/page.js"></script>
  73. </body>
  74. </html>
粤ICP备19079148号