1
0

PackFloatNode.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>PackFloatNode - 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="TempNode.html">TempNode</a> → </p>
  13. <h1 translate="no">PackFloatNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node represents an operation that packs floating-point values of a vector into an unsigned 32-bit integer</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="PackFloatNode" translate="no">new <a href="#PackFloatNode">PackFloatNode</a><span class="signature">( encoding : <span class="param-type">'snorm' | 'unorm' | 'float16'</span>, vectorNode : <span class="param-type"><a href="Node.html">Node</a></span> )</span> </h3>
  22. <div class="method">
  23. <table class="params">
  24. <tbody>
  25. <tr>
  26. <td class="name">
  27. <strong>encoding</strong>
  28. </td>
  29. <td class="description last">
  30. <p>The numeric encoding that describes how the float values are mapped to the integer range.</p>
  31. </td>
  32. </tr>
  33. <tr>
  34. <td class="name">
  35. <strong>vectorNode</strong>
  36. </td>
  37. <td class="description last">
  38. <p>The vector node to be packed</p>
  39. </td>
  40. </tr>
  41. </tbody>
  42. </table>
  43. </div>
  44. </div>
  45. <h2 class="subsection-title">Properties</h2>
  46. <div class="member">
  47. <h3 class="name" id="encoding" translate="no">.<a href="#encoding">encoding</a><span class="type-signature"> : string</span> </h3>
  48. <div class="description">
  49. <p>The numeric encoding.</p>
  50. </div>
  51. </div>
  52. <div class="member">
  53. <h3 class="name" id="isPackFloatNode" translate="no">.<a href="#isPackFloatNode">isPackFloatNode</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="vectorNode" translate="no">.<a href="#vectorNode">vectorNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  61. <div class="description">
  62. <p>The vector to be packed.</p>
  63. </div>
  64. </div>
  65. <h2 class="subsection-title">Source</h2>
  66. <p>
  67. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/math/PackFloatNode.js" translate="no" target="_blank" rel="noopener">src/nodes/math/PackFloatNode.js</a>
  68. </p>
  69. </article>
  70. </section>
  71. <script src="../scripts/linenumber.js"></script>
  72. <script src="../scripts/page.js"></script>
  73. </body>
  74. </html>
粤ICP备19079148号