1
0

NormalMapNode.html 3.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>NormalMapNode - 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">NormalMapNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This class can be used for applying normals maps to materials.</p></div>
  17. <h2>Code Example</h2>
  18. <div translate="no"><pre><code class="language-js">material.normalNode = normalMap( texture( normalTex ) );
  19. </code></pre></div>
  20. </header>
  21. <article>
  22. <div class="container-overview">
  23. <h2>Constructor</h2>
  24. <h3 class="name name-method" id="NormalMapNode" translate="no">new <a href="#NormalMapNode">NormalMapNode</a><span class="signature">( node : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, scaleNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec2></span> )</span> </h3>
  25. <div class="method">
  26. <div class="description">
  27. <p>Constructs a new normal map node.</p>
  28. </div>
  29. <table class="params">
  30. <tbody>
  31. <tr>
  32. <td class="name">
  33. <strong>node</strong>
  34. </td>
  35. <td class="description last">
  36. <p>Represents the normal map data.</p>
  37. </td>
  38. </tr>
  39. <tr>
  40. <td class="name">
  41. <strong>scaleNode</strong>
  42. </td>
  43. <td class="description last">
  44. <p>Controls the intensity of the effect.</p>
  45. <p>Default is <code>null</code>.</p>
  46. </td>
  47. </tr>
  48. </tbody>
  49. </table>
  50. </div>
  51. </div>
  52. <h2 class="subsection-title">Properties</h2>
  53. <div class="member">
  54. <h3 class="name" id="node" translate="no">.<a href="#node">node</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  55. <div class="description">
  56. <p>Represents the normal map data.</p>
  57. </div>
  58. </div>
  59. <div class="member">
  60. <h3 class="name" id="normalMapType" translate="no">.<a href="#normalMapType">normalMapType</a><span class="type-signature"> : <a href="global.html#TangentSpaceNormalMap">TangentSpaceNormalMap</a> | <a href="global.html#ObjectSpaceNormalMap">ObjectSpaceNormalMap</a></span> </h3>
  61. <div class="description">
  62. <p>The normal map type.</p>
  63. <p>Default is <code>TangentSpaceNormalMap</code>.</p>
  64. </div>
  65. </div>
  66. <div class="member">
  67. <h3 class="name" id="scaleNode" translate="no">.<a href="#scaleNode">scaleNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec2></span> </h3>
  68. <div class="description">
  69. <p>Controls the intensity of the effect.</p>
  70. <p>Default is <code>null</code>.</p>
  71. </div>
  72. </div>
  73. <div class="member">
  74. <h3 class="name" id="unpackNormalMode" translate="no">.<a href="#unpackNormalMode">unpackNormalMode</a><span class="type-signature"> : string</span> </h3>
  75. <div class="description">
  76. <p>Controls how to unpack the sampled normal map values.</p>
  77. <p>Default is <code>NoNormalPacking</code>.</p>
  78. </div>
  79. </div>
  80. <h2 class="subsection-title">Source</h2>
  81. <p>
  82. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/NormalMapNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/NormalMapNode.js</a>
  83. </p>
  84. </article>
  85. </section>
  86. <script src="../scripts/linenumber.js"></script>
  87. <script src="../scripts/page.js"></script>
  88. </body>
  89. </html>
粤ICP备19079148号