NodeVarying.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>NodeVarying - 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="NodeVar.html">NodeVar</a> → </p>
  13. <h1 translate="no">NodeVarying</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p><a href="NodeBuilder.html">NodeBuilder</a> is going to create instances of this class during the build process
  17. of nodes. They represent the final shader varyings that are going to be generated
  18. by the builder. An array of node varyings is maintained in <a href="NodeBuilder.html#varyings">NodeBuilder#varyings</a> for
  19. this purpose.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="NodeVarying" translate="no">new <a href="#NodeVarying">NodeVarying</a><span class="signature">( name : <span class="param-type">string</span>, type : <span class="param-type">string</span>, interpolationType : <span class="param-type">string</span>, interpolationSampling : <span class="param-type">string</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new node varying.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name">
  33. <strong>name</strong>
  34. </td>
  35. <td class="description last">
  36. <p>The name of the varying.</p>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="name">
  41. <strong>type</strong>
  42. </td>
  43. <td class="description last">
  44. <p>The type of the varying.</p>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="name">
  49. <strong>interpolationType</strong>
  50. </td>
  51. <td class="description last">
  52. <p>The interpolation type of the varying.</p>
  53. <p>Default is <code>null</code>.</p>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="name">
  58. <strong>interpolationSampling</strong>
  59. </td>
  60. <td class="description last">
  61. <p>The interpolation sampling type of the varying.</p>
  62. <p>Default is <code>null</code>.</p>
  63. </td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Properties</h2>
  70. <div class="member">
  71. <h3 class="name" id="interpolationSampling" translate="no">.<a href="#interpolationSampling">interpolationSampling</a><span class="type-signature"> : string</span> </h3>
  72. <div class="description">
  73. <p>The interpolation sampling type of varying data.</p>
  74. <p>Default is <code>null</code>.</p>
  75. </div>
  76. </div>
  77. <div class="member">
  78. <h3 class="name" id="interpolationType" translate="no">.<a href="#interpolationType">interpolationType</a><span class="type-signature"> : string</span> </h3>
  79. <div class="description">
  80. <p>The interpolation type of the varying data.</p>
  81. <p>Default is <code>null</code>.</p>
  82. </div>
  83. </div>
  84. <div class="member">
  85. <h3 class="name" id="isNodeVarying" translate="no">.<a href="#isNodeVarying">isNodeVarying</a><span class="type-signature"> : boolean</span> <span class="type-signature">(readonly) </span></h3>
  86. <div class="description">
  87. <p>This flag can be used for type testing.</p>
  88. <p>Default is <code>true</code>.</p>
  89. </div>
  90. </div>
  91. <div class="member">
  92. <h3 class="name" id="needsInterpolation" translate="no">.<a href="#needsInterpolation">needsInterpolation</a><span class="type-signature"> : boolean</span> </h3>
  93. <div class="description">
  94. <p>Whether this varying requires interpolation or not. This property can be used
  95. to check if the varying can be optimized for a variable.</p>
  96. <p>Default is <code>false</code>.</p>
  97. </div>
  98. </div>
  99. <h2 class="subsection-title">Source</h2>
  100. <p>
  101. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/core/NodeVarying.js" translate="no" target="_blank" rel="noopener">src/nodes/core/NodeVarying.js</a>
  102. </p>
  103. </article>
  104. </section>
  105. <script src="../scripts/linenumber.js"></script>
  106. <script src="../scripts/page.js"></script>
  107. </body>
  108. </html>
粤ICP备19079148号