MorphNode.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>MorphNode - 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">MorphNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node implements the vertex transformation shader logic which is required
  17. for morph target animation.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="MorphNode" translate="no">new <a href="#MorphNode">MorphNode</a><span class="signature">( mesh : <span class="param-type">Mesh</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new morph node.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name"><code>mesh</code></td>
  31. <td class="description last"><p>The mesh holding the morph targets.</p></td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. <h2 class="subsection-title">Properties</h2>
  38. <div class="member">
  39. <h3 class="name" id="mesh" translate="no">.<a href="#mesh">mesh</a><span class="type-signature"> : <a href="Mesh.html">Mesh</a></span> </h3>
  40. <div class="description">
  41. <p>The mesh holding the morph targets.</p>
  42. </div>
  43. </div>
  44. <div class="member">
  45. <h3 class="name" id="morphBaseInfluence" translate="no">.<a href="#morphBaseInfluence">morphBaseInfluence</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a>.&lt;float></span> </h3>
  46. <div class="description">
  47. <p>A uniform node which represents the morph base influence value.</p>
  48. </div>
  49. </div>
  50. <div class="member">
  51. <h3 class="name" id="updateType" translate="no">.<a href="#updateType">updateType</a><span class="type-signature"> : string</span> </h3>
  52. <div class="description">
  53. <p>The update type overwritten since morph nodes are updated per object.</p>
  54. </div>
  55. <dl class="details">
  56. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#updateType">Node#updateType</a></dt>
  57. </dl>
  58. </div>
  59. <h2 class="subsection-title">Methods</h2>
  60. <h3 class="name name-method" id="setup" translate="no">.<a href="#setup">setup</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span> </h3>
  61. <div class="method">
  62. <div class="description">
  63. <p>Setups the morph node by assigning the transformed vertex data to predefined node variables.</p>
  64. </div>
  65. <table class="params">
  66. <tbody>
  67. <tr>
  68. <td class="name"><code>builder</code></td>
  69. <td class="description last"><p>The current node builder.</p></td>
  70. </tr>
  71. </tbody>
  72. </table>
  73. <dl class="details">
  74. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#setup">Node#setup</a></dt>
  75. </dl>
  76. </div>
  77. <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type">NodeFrame</span> )</span> </h3>
  78. <div class="method">
  79. <div class="description">
  80. <p>Updates the state of the morphed mesh by updating the base influence.</p>
  81. </div>
  82. <table class="params">
  83. <tbody>
  84. <tr>
  85. <td class="name"><code>frame</code></td>
  86. <td class="description last"><p>The current node frame.</p></td>
  87. </tr>
  88. </tbody>
  89. </table>
  90. <dl class="details">
  91. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Node.html#update">Node#update</a></dt>
  92. </dl>
  93. </div>
  94. <h2 class="subsection-title">Source</h2>
  95. <p>
  96. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/MorphNode.js" target="_blank" rel="noopener" translate="no">src/nodes/accessors/MorphNode.js</a>
  97. </p>
  98. </article>
  99. </section>
  100. <script src="../scripts/linenumber.js"></script>
  101. <script src="../scripts/page.js"></script>
  102. </body>
  103. </html>
粤ICP备19079148号