module-HorizontalBlurShader.html 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>HorizontalBlurShader - 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">HorizontalBlurShader</h1>
  13. <section>
  14. <header>
  15. </header>
  16. <article>
  17. <h2 class="subsection-title">Import</h2>
  18. <p><span translate="no">HorizontalBlurShader</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 { HorizontalBlurShader } from 'three/addons/shaders/HorizontalBlurShader.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="~HorizontalBlurShader" translate="no">.<a href="#~HorizontalBlurShader">HorizontalBlurShader</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>Two pass Gaussian blur filter (horizontal and vertical blur shaders).</p>
  27. <p>References:</p>
  28. <ul>
  29. <li>
  30. <p><a href="http://www.cake23.de/traveling-wavefronts-lit-up.html" target="_blank" rel="noopener">http://www.cake23.de/traveling-wavefronts-lit-up.html</a>.</p>
  31. </li>
  32. <li>
  33. <p>9 samples per pass</p>
  34. </li>
  35. <li>
  36. <p>standard deviation 2.7</p>
  37. </li>
  38. <li>
  39. <p>&quot;h&quot; and &quot;v&quot; parameters should be set to &quot;1 / width&quot; and &quot;1 / height&quot;</p>
  40. </li>
  41. </ul>
  42. </div>
  43. </div>
  44. <h2 class="subsection-title">Source</h2>
  45. <p>
  46. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/shaders/HorizontalBlurShader.js" translate="no" target="_blank" rel="noopener">examples/jsm/shaders/HorizontalBlurShader.js</a>
  47. </p>
  48. </article>
  49. </section>
  50. <script src="../scripts/linenumber.js"></script>
  51. <script src="../scripts/page.js"></script>
  52. </body>
  53. </html>
粤ICP备19079148号