ToonOutlinePassNode.html 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117
  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"><a href="Scene.html">Scene</a></span>, camera : <span class="param-type"><a href="Camera.html">Camera</a></span>, colorNode : <span class="param-type"><a href="Node.html">Node</a></span>, thicknessNode : <span class="param-type"><a href="Node.html">Node</a></span>, alphaNode : <span class="param-type"><a href="Node.html">Node</a></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">
  37. <strong>scene</strong>
  38. </td>
  39. <td class="description last">
  40. <p>A reference to the scene.</p>
  41. </td>
  42. </tr>
  43. <tr>
  44. <td class="name">
  45. <strong>camera</strong>
  46. </td>
  47. <td class="description last">
  48. <p>A reference to the camera.</p>
  49. </td>
  50. </tr>
  51. <tr>
  52. <td class="name">
  53. <strong>colorNode</strong>
  54. </td>
  55. <td class="description last">
  56. <p>Defines the outline's color.</p>
  57. </td>
  58. </tr>
  59. <tr>
  60. <td class="name">
  61. <strong>thicknessNode</strong>
  62. </td>
  63. <td class="description last">
  64. <p>Defines the outline's thickness.</p>
  65. </td>
  66. </tr>
  67. <tr>
  68. <td class="name">
  69. <strong>alphaNode</strong>
  70. </td>
  71. <td class="description last">
  72. <p>Defines the outline's alpha.</p>
  73. </td>
  74. </tr>
  75. </tbody>
  76. </table>
  77. </div>
  78. </div>
  79. <h2 class="subsection-title">Properties</h2>
  80. <div class="member">
  81. <h3 class="name" id="alphaNode" translate="no">.<a href="#alphaNode">alphaNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  82. <div class="description">
  83. <p>Defines the outline's alpha.</p>
  84. </div>
  85. </div>
  86. <div class="member">
  87. <h3 class="name" id="colorNode" translate="no">.<a href="#colorNode">colorNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  88. <div class="description">
  89. <p>Defines the outline's color.</p>
  90. </div>
  91. </div>
  92. <div class="member">
  93. <h3 class="name" id="name" translate="no">.<a href="#name">name</a><span class="type-signature"> : string</span> </h3>
  94. <div class="description">
  95. <p>The name of this pass.</p>
  96. <p>Default is <code>'Outline Pass'</code>.</p>
  97. </div>
  98. <dl class="details">
  99. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PassNode.html#name">PassNode#name</a></dt>
  100. </dl>
  101. </div>
  102. <div class="member">
  103. <h3 class="name" id="thicknessNode" translate="no">.<a href="#thicknessNode">thicknessNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  104. <div class="description">
  105. <p>Defines the outline's thickness.</p>
  106. </div>
  107. </div>
  108. <h2 class="subsection-title">Source</h2>
  109. <p>
  110. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/display/ToonOutlinePassNode.js" translate="no" target="_blank" rel="noopener">src/nodes/display/ToonOutlinePassNode.js</a>
  111. </p>
  112. </article>
  113. </section>
  114. <script src="../scripts/linenumber.js"></script>
  115. <script src="../scripts/page.js"></script>
  116. </body>
  117. </html>
粤ICP备19079148号