ModelNode.html 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ModelNode - 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="Object3DNode.html">Object3DNode</a> → </p>
  13. <h1 translate="no">ModelNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This type of node is a specialized version of <code>Object3DNode</code>
  17. with larger set of model related metrics. Unlike <code>Object3DNode</code>,
  18. <code>ModelNode</code> extracts the reference to the 3D object from the
  19. current node frame state.</p></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="ModelNode" translate="no">new <a href="#ModelNode">ModelNode</a><span class="signature">( scope : <span class="param-type">'position' | 'viewPosition' | 'direction' | 'scale' | 'worldMatrix'</span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new object model node.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name">
  33. <strong>scope</strong>
  34. </td>
  35. <td class="description last">
  36. <p>The node represents a different type of transformation depending on the scope.</p>
  37. </td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Methods</h2>
  44. <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type"><a href="NodeFrame.html">NodeFrame</a></span> )</span> </h3>
  45. <div class="method">
  46. <div class="description">
  47. <p>Extracts the model reference from the frame state and then
  48. updates the uniform value depending on the scope.</p>
  49. </div>
  50. <table class="params">
  51. <tbody>
  52. <tr>
  53. <td class="name">
  54. <strong>frame</strong>
  55. </td>
  56. <td class="description last">
  57. <p>The current node frame.</p>
  58. </td>
  59. </tr>
  60. </tbody>
  61. </table>
  62. <dl class="details">
  63. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="Object3DNode.html#update">Object3DNode#update</a></dt>
  64. </dl>
  65. </div>
  66. <h2 class="subsection-title">Source</h2>
  67. <p>
  68. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/accessors/ModelNode.js" translate="no" target="_blank" rel="noopener">src/nodes/accessors/ModelNode.js</a>
  69. </p>
  70. </article>
  71. </section>
  72. <script src="../scripts/linenumber.js"></script>
  73. <script src="../scripts/page.js"></script>
  74. </body>
  75. </html>
粤ICP备19079148号