module-VolumeShader.html 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>VolumeShader - 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">VolumeShader</h1>
  13. <section>
  14. <header>
  15. </header>
  16. <article>
  17. <h2 class="subsection-title">Import</h2>
  18. <p><span translate="no">VolumeShader</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 { VolumeRenderShader1 } from 'three/addons/shaders/VolumeShader.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="~VolumeRenderShader1" translate="no">.<a href="#~VolumeRenderShader1">VolumeRenderShader1</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>Shaders to render 3D volumes using raycasting.
  27. The applied techniques are based on similar implementations in the Visvis and Vispy projects.
  28. This is not the only approach, therefore it's marked 1.</p>
  29. </div>
  30. </div>
  31. <h2 class="subsection-title">Source</h2>
  32. <p>
  33. <a href="https://github.com/mrdoob/three.js/blob/master/examples/jsm/shaders/VolumeShader.js" translate="no" target="_blank" rel="noopener">examples/jsm/shaders/VolumeShader.js</a>
  34. </p>
  35. </article>
  36. </section>
  37. <script src="../scripts/linenumber.js"></script>
  38. <script src="../scripts/page.js"></script>
  39. </body>
  40. </html>
粤ICP备19079148号