VolumeNodeMaterial.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>VolumeNodeMaterial - 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="EventDispatcher.html">EventDispatcher</a> → <a href="Material.html">Material</a> → <a href="NodeMaterial.html">NodeMaterial</a> → </p>
  13. <h1 translate="no">VolumeNodeMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Volume node material.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="VolumeNodeMaterial" translate="no">new <a href="#VolumeNodeMaterial">VolumeNodeMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new volume node material.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>parameters</code></td>
  30. <td class="description last"><p>The configuration parameter.</p></td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. <h2 class="subsection-title">Properties</h2>
  37. <div class="member">
  38. <h3 class="name" id="isVolumeNodeMaterial" translate="no">.<a href="#isVolumeNodeMaterial">isVolumeNodeMaterial</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  39. <div class="description">
  40. <p>This flag can be used for type testing.<br/>Default is <code>true</code>.</p>
  41. </div>
  42. </div>
  43. <div class="member">
  44. <h3 class="name" id="offsetNode" translate="no">.<a href="#offsetNode">offsetNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  45. <div class="description">
  46. <p>Offsets the distance a ray has been traveled through a volume.
  47. Can be used to implement dithering to reduce banding.<br/>Default is <code>null</code>.</p>
  48. </div>
  49. </div>
  50. <div class="member">
  51. <h3 class="name" id="scatteringNode" translate="no">.<a href="#scatteringNode">scatteringNode</a><span class="type-signature"> : function | <a href="FunctionNode.html">FunctionNode</a>.&lt;vec4></span> </h3>
  52. <div class="description">
  53. <p>Node used for scattering calculations.<br/>Default is <code>null</code>.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <h3 class="name" id="steps" translate="no">.<a href="#steps">steps</a><span class="type-signature"> : number</span> </h3>
  58. <div class="description">
  59. <p>Number of steps used for raymarching.<br/>Default is <code>25</code>.</p>
  60. </div>
  61. </div>
  62. <h2 class="subsection-title">Source</h2>
  63. <p>
  64. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/nodes/VolumeNodeMaterial.js" target="_blank" rel="noopener" translate="no">src/materials/nodes/VolumeNodeMaterial.js</a>
  65. </p>
  66. </article>
  67. </section>
  68. <script src="../scripts/linenumber.js"></script>
  69. <script src="../scripts/page.js"></script>
  70. </body>
  71. </html>
粤ICP备19079148号