ToonLightingModel.html 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ToonLightingModel - 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="LightingModel.html">LightingModel</a> → </p>
  13. <h1 translate="no">ToonLightingModel</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents the lighting model for a toon material. Used in <a href="MeshToonNodeMaterial.html">MeshToonNodeMaterial</a>.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ToonLightingModel" translate="no">new <a href="#ToonLightingModel">ToonLightingModel</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. </div>
  24. </div>
  25. <h2 class="subsection-title">Methods</h2>
  26. <h3 class="name name-method" id="direct" translate="no">.<a href="#direct">direct</a><span class="signature">( lightData : <span class="param-type">Object</span>, builder : <span class="param-type">NodeBuilder</span> )</span> </h3>
  27. <div class="method">
  28. <div class="description">
  29. <p>Implements the direct lighting. Instead of using a conventional smooth irradiance, the irradiance is
  30. reduced to a small number of discrete shades to create a comic-like, flat look.</p>
  31. </div>
  32. <table class="params">
  33. <tbody>
  34. <tr>
  35. <td class="name"><code>lightData</code></td>
  36. <td class="description last"><p>The light data.</p></td>
  37. </tr>
  38. <tr>
  39. <td class="name"><code>builder</code></td>
  40. <td class="description last"><p>The current node builder.</p></td>
  41. </tr>
  42. </tbody>
  43. </table>
  44. <dl class="details">
  45. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#direct">LightingModel#direct</a></dt>
  46. </dl>
  47. </div>
  48. <h3 class="name name-method" id="indirect" translate="no">.<a href="#indirect">indirect</a><span class="signature">( builder : <span class="param-type">NodeBuilder</span> )</span> </h3>
  49. <div class="method">
  50. <div class="description">
  51. <p>Implements the indirect lighting.</p>
  52. </div>
  53. <table class="params">
  54. <tbody>
  55. <tr>
  56. <td class="name"><code>builder</code></td>
  57. <td class="description last"><p>The current node builder.</p></td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. <dl class="details">
  62. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#indirect">LightingModel#indirect</a></dt>
  63. </dl>
  64. </div>
  65. <h2 class="subsection-title">Source</h2>
  66. <p>
  67. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/functions/ToonLightingModel.js" target="_blank" rel="noopener" translate="no">src/nodes/functions/ToonLightingModel.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号