1
0

ShadowMaskModel.html 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>ShadowMaskModel - 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">ShadowMaskModel</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents lighting model for a shadow material. Used in <a href="ShadowNodeMaterial.html">ShadowNodeMaterial</a>.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="ShadowMaskModel" translate="no">new <a href="#ShadowMaskModel">ShadowMaskModel</a><span class="signature">()</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new shadow mask model.</p>
  25. </div>
  26. </div>
  27. </div>
  28. <h2 class="subsection-title">Properties</h2>
  29. <div class="member">
  30. <h3 class="name" id="shadowNode" translate="no">.<a href="#shadowNode">shadowNode</a><span class="type-signature"> : <a href="Node.html">Node</a></span> </h3>
  31. <div class="description">
  32. <p>The shadow mask node.</p>
  33. </div>
  34. </div>
  35. <h2 class="subsection-title">Methods</h2>
  36. <h3 class="name name-method" id="direct" translate="no">.<a href="#direct">direct</a><span class="signature">( input : <span class="param-type">Object</span> )</span> </h3>
  37. <div class="method">
  38. <div class="description">
  39. <p>Only used to save the shadow mask.</p>
  40. </div>
  41. <table class="params">
  42. <tbody>
  43. <tr>
  44. <td class="name">
  45. <strong>input</strong>
  46. </td>
  47. <td class="description last">
  48. <p>The input data.</p>
  49. </td>
  50. </tr>
  51. </tbody>
  52. </table>
  53. <dl class="details">
  54. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#direct">LightingModel#direct</a></dt>
  55. </dl>
  56. </div>
  57. <h3 class="name name-method" id="finish" translate="no">.<a href="#finish">finish</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  58. <div class="method">
  59. <div class="description">
  60. <p>Uses the shadow mask to produce the final color.</p>
  61. </div>
  62. <table class="params">
  63. <tbody>
  64. <tr>
  65. <td class="name">
  66. <strong>builder</strong>
  67. </td>
  68. <td class="description last">
  69. <p>The current node builder.</p>
  70. </td>
  71. </tr>
  72. </tbody>
  73. </table>
  74. <dl class="details">
  75. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="LightingModel.html#finish">LightingModel#finish</a></dt>
  76. </dl>
  77. </div>
  78. <h2 class="subsection-title">Source</h2>
  79. <p>
  80. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/functions/ShadowMaskModel.js" translate="no" target="_blank" rel="noopener">src/nodes/functions/ShadowMaskModel.js</a>
  81. </p>
  82. </article>
  83. </section>
  84. <script src="../scripts/linenumber.js"></script>
  85. <script src="../scripts/page.js"></script>
  86. </body>
  87. </html>
粤ICP备19079148号