1
0

MaxMipLevelNode.html 3.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>MaxMipLevelNode - 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> → </p>
  13. <h1 translate="no">MaxMipLevelNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A special type of uniform node that computes the
  17. maximum mipmap level for a given texture node.</p></div>
  18. <h2>Code Example</h2>
  19. <div translate="no"><pre><code class="language-js">const level = maxMipLevel( textureNode );
  20. </code></pre></div>
  21. </header>
  22. <article>
  23. <div class="container-overview">
  24. <h2>Constructor</h2>
  25. <h3 class="name name-method" id="MaxMipLevelNode" translate="no">new <a href="#MaxMipLevelNode">MaxMipLevelNode</a><span class="signature">( textureNode : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span> )</span> </h3>
  26. <div class="method">
  27. <div class="description">
  28. <p>Constructs a new max mip level node.</p>
  29. </div>
  30. <table class="params">
  31. <tbody>
  32. <tr>
  33. <td class="name">
  34. <strong>textureNode</strong>
  35. </td>
  36. <td class="description last">
  37. <p>The texture node to compute the max mip level for.</p>
  38. </td>
  39. </tr>
  40. </tbody>
  41. </table>
  42. </div>
  43. </div>
  44. <h2 class="subsection-title">Properties</h2>
  45. <div class="member">
  46. <h3 class="name" id="texture" translate="no">.<a href="#texture">texture</a><span class="type-signature"> : <a href="Texture.html">Texture</a></span> <span class="type-signature">(readonly) </span></h3>
  47. <div class="description">
  48. <p>The texture.</p>
  49. </div>
  50. </div>
  51. <div class="member">
  52. <h3 class="name" id="textureNode" translate="no">.<a href="#textureNode">textureNode</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> <span class="type-signature">(readonly) </span></h3>
  53. <div class="description">
  54. <p>The texture node to compute the max mip level for.</p>
  55. </div>
  56. </div>
  57. <div class="member">
  58. <h3 class="name" id="updateType" translate="no">.<a href="#updateType">updateType</a><span class="type-signature"> : string</span> </h3>
  59. <div class="description">
  60. <p>The <code>updateType</code> is set to <code>NodeUpdateType.FRAME</code> since the node updates
  61. the texture once per frame in its <a href="MaxMipLevelNode.html#update">MaxMipLevelNode#update</a> method.</p>
  62. <p>Default is <code>'frame'</code>.</p>
  63. </div>
  64. <dl class="details">
  65. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="UniformNode.html#updateType">UniformNode#updateType</a></dt>
  66. </dl>
  67. </div>
  68. <h2 class="subsection-title">Source</h2>
  69. <p>
  70. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/utils/MaxMipLevelNode.js" translate="no" target="_blank" rel="noopener">src/nodes/utils/MaxMipLevelNode.js</a>
  71. </p>
  72. </article>
  73. </section>
  74. <script src="../scripts/linenumber.js"></script>
  75. <script src="../scripts/page.js"></script>
  76. </body>
  77. </html>
粤ICP备19079148号