NormalMapNode.html 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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">Node.&lt;vec3></span>, scaleNode : <span class="param-type">Node.&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"><code>node</code></td>
  33. <td class="description last"><p>Represents the normal map data.</p></td>
  34. </tr>
  35. <tr>
  36. <td class="name"><code>scaleNode</code></td>
  37. <td class="description last"><p>Controls the intensity of the effect.<br/>Default is <code>null</code>.</p></td>
  38. </tr>
  39. </tbody>
  40. </table>
  41. </div>
  42. </div>
  43. <h2 class="subsection-title">Properties</h2>
  44. <div class="member">
  45. <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>
  46. <div class="description">
  47. <p>Represents the normal map data.</p>
  48. </div>
  49. </div>
  50. <div class="member">
  51. <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>
  52. <div class="description">
  53. <p>The normal map type.<br/>Default is <code>TangentSpaceNormalMap</code>.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <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>
  58. <div class="description">
  59. <p>Controls the intensity of the effect.<br/>Default is <code>null</code>.</p>
  60. </div>
  61. </div>
  62. <h2 class="subsection-title">Source</h2>
  63. <p>
  64. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/NormalMapNode.js" target="_blank" rel="noopener" translate="no">src/nodes/display/NormalMapNode.js</a>
  65. </p>
  66. </article>
  67. </section>
  68. <script src="../scripts/linenumber.js"></script>
  69. <script src="../scripts/page.js"></script>
  70. </body>
  71. </html>
粤ICP备19079148号