module-VerticalBlurShader.html 2.1 KB

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