TextureSizeNode.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>TextureSizeNode - 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> → </p>
  13. <h1 translate="no">TextureSizeNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>A node that represents the dimensions of a texture. The texture size is
  17. retrieved in the shader via built-in shader functions like <code>textureDimensions()</code>
  18. or <code>textureSize()</code>.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <h3 class="name name-method" id="TextureSizeNode" translate="no">new <a href="#TextureSizeNode">TextureSizeNode</a><span class="signature">( textureNode : <span class="param-type"><a href="TextureNode.html">TextureNode</a></span>, levelNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;int></span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new texture size node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name">
  32. <strong>textureNode</strong>
  33. </td>
  34. <td class="description last">
  35. <p>A texture node which size should be retrieved.</p>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="name">
  40. <strong>levelNode</strong>
  41. </td>
  42. <td class="description last">
  43. <p>A level node which defines the requested mip.</p>
  44. <p>Default is <code>null</code>.</p>
  45. </td>
  46. </tr>
  47. </tbody>
  48. </table>
  49. </div>
  50. </div>
  51. <h2 class="subsection-title">Properties</h2>
  52. <div class="member">
  53. <h3 class="name" id="isTextureSizeNode" translate="no">.<a href="#isTextureSizeNode">isTextureSizeNode</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  54. <div class="description">
  55. <p>This flag can be used for type testing.</p>
  56. <p>Default is <code>true</code>.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <h3 class="name" id="levelNode" translate="no">.<a href="#levelNode">levelNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;int></span> </h3>
  61. <div class="description">
  62. <p>A level node which defines the requested mip.</p>
  63. <p>Default is <code>null</code>.</p>
  64. </div>
  65. </div>
  66. <div class="member">
  67. <h3 class="name" id="textureNode" translate="no">.<a href="#textureNode">textureNode</a><span class="type-signature"> : <a href="TextureNode.html">TextureNode</a></span> </h3>
  68. <div class="description">
  69. <p>A texture node which size should be retrieved.</p>
  70. </div>
  71. </div>
  72. <h2 class="subsection-title">Source</h2>
  73. <p>
  74. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/TextureSizeNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/TextureSizeNode.js</a>
  75. </p>
  76. </article>
  77. </section>
  78. <script src="../scripts/linenumber.js"></script>
  79. <script src="../scripts/page.js"></script>
  80. </body>
  81. </html>
粤ICP备19079148号