ToonOutlinePassNode.html 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ToonOutlinePassNode - 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> → <a href="PassNode.html">PassNode</a> → </p>
  13. <h1 translate="no">ToonOutlinePassNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents a render pass for producing a toon outline effect on compatible objects.
  17. Only 3D objects with materials of type <code>MeshToonMaterial</code> and <code>MeshToonNodeMaterial</code>
  18. will receive the outline.</p></div>
  19. <h2>Code Example</h2>
  20. <div translate="no"><pre><code class="language-js">const postProcessing = new PostProcessing( renderer );
  21. const scenePass = toonOutlinePass( scene, camera );
  22. postProcessing.outputNode = scenePass;
  23. </code></pre></div>
  24. </header>
  25. <article>
  26. <div class="container-overview">
  27. <h2>Constructor</h2>
  28. <h3 class="name name-method" id="ToonOutlinePassNode" translate="no">new <a href="#ToonOutlinePassNode">ToonOutlinePassNode</a><span class="signature">( scene : <span class="param-type">Scene</span>, camera : <span class="param-type">Camera</span>, colorNode : <span class="param-type">Node</span>, thicknessNode : <span class="param-type">Node</span>, alphaNode : <span class="param-type">Node</span> )</span> </h3>
  29. <div class="method">
  30. <div class="description">
  31. <p>Constructs a new outline pass node.</p>
  32. </div>
  33. <table class="params">
  34. <tbody>
  35. <tr>
  36. <td class="name"><code>scene</code></td>
  37. <td class="description last"><p>A reference to the scene.</p></td>
  38. </tr>
  39. <tr>
  40. <td class="name"><code>camera</code></td>
  41. <td class="description last"><p>A reference to the camera.</p></td>
  42. </tr>
  43. <tr>
  44. <td class="name"><code>colorNode</code></td>
  45. <td class="description last"><p>Defines the outline's color.</p></td>
  46. </tr>
  47. <tr>
  48. <td class="name"><code>thicknessNode</code></td>
  49. <td class="description last"><p>Defines the outline's thickness.</p></td>
  50. </tr>
  51. <tr>
  52. <td class="name"><code>alphaNode</code></td>
  53. <td class="description last"><p>Defines the outline's alpha.</p></td>
  54. </tr>
  55. </tbody>
  56. </table>
  57. </div>
  58. </div>
  59. <h2 class="subsection-title">Properties</h2>
  60. <div class="member">
  61. <h3 class="name" id="alphaNode" translate="no">.<a href="#alphaNode">alphaNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  62. <div class="description">
  63. <p>Defines the outline's alpha.</p>
  64. </div>
  65. </div>
  66. <div class="member">
  67. <h3 class="name" id="colorNode" translate="no">.<a href="#colorNode">colorNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  68. <div class="description">
  69. <p>Defines the outline's color.</p>
  70. </div>
  71. </div>
  72. <div class="member">
  73. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  74. <div class="description">
  75. <p>The name of this pass.<br/>Default is <code>'Outline Pass'</code>.</p>
  76. </div>
  77. <dl class="details">
  78. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PassNode.html#name">PassNode#name</a></dt>
  79. </dl>
  80. </div>
  81. <div class="member">
  82. <h3 class="name" id="thicknessNode" translate="no">.<a href="#thicknessNode">thicknessNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  83. <div class="description">
  84. <p>Defines the outline's thickness.</p>
  85. </div>
  86. </div>
  87. <h2 class="subsection-title">Source</h2>
  88. <p>
  89. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/ToonOutlinePassNode.js" target="_blank" rel="noopener" translate="no">src/nodes/display/ToonOutlinePassNode.js</a>
  90. </p>
  91. </article>
  92. </section>
  93. <script src="../scripts/linenumber.js"></script>
  94. <script src="../scripts/page.js"></script>
  95. </body>
  96. </html>
粤ICP备19079148号