PassMultipleTextureNode.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>PassMultipleTextureNode - 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="Node.html">Node</a> → <a href="InputNode.html">InputNode</a> → <a href="UniformNode.html">UniformNode</a> → <a href="TextureNode.html">TextureNode</a> → <a href="PassTextureNode.html">PassTextureNode</a> → </p>
  13. <h1 translate="no">PassMultipleTextureNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>An extension of <code>PassTextureNode</code> which allows to manage more than one
  17. internal texture. Relevant for the <code>getPreviousTexture()</code> related API.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="PassMultipleTextureNode" translate="no">new <a href="#PassMultipleTextureNode">PassMultipleTextureNode</a><span class="signature">( passNode : <span class="param-type">PassNode</span>, textureName : <span class="param-type">string</span>, previousTexture : <span class="param-type">boolean</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new pass texture node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name"><code>passNode</code></td>
  31. <td class="description last"><p>The pass node.</p></td>
  32. </tr>
  33. <tr>
  34. <td class="name"><code>textureName</code></td>
  35. <td class="description last"><p>The output texture name.</p></td>
  36. </tr>
  37. <tr>
  38. <td class="name"><code>previousTexture</code></td>
  39. <td class="description last"><p>Whether previous frame data should be used or not.<br/>Default is <code>false</code>.</p></td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. <h2 class="subsection-title">Properties</h2>
  46. <div class="member">
  47. <h3 class="name" id="previousTexture" translate="no">.<a href="#previousTexture">previousTexture</a><span class="type-signature"> : boolean</span> </h3>
  48. <div class="description">
  49. <p>Whether previous frame data should be used or not.</p>
  50. </div>
  51. </div>
  52. <div class="member">
  53. <h3 class="name" id="textureName" translate="no">.<a href="#textureName">textureName</a><span class="type-signature"> : string</span> </h3>
  54. <div class="description">
  55. <p>The output texture name.</p>
  56. </div>
  57. </div>
  58. <h2 class="subsection-title">Methods</h2>
  59. <h3 class="name name-method" id="updateTexture" translate="no">.<a href="#updateTexture">updateTexture</a><span class="signature">()</span> </h3>
  60. <div class="method">
  61. <div class="description">
  62. <p>Updates the texture reference of this node.</p>
  63. </div>
  64. </div>
  65. <h2 class="subsection-title">Source</h2>
  66. <p>
  67. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/PassNode.js" target="_blank" rel="noopener" translate="no">src/nodes/display/PassNode.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号