SSSLightingModel.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>SSSLightingModel - 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> → <a href="PhysicalLightingModel.html">PhysicalLightingModel</a> → </p>
  13. <h1 translate="no">SSSLightingModel</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Represents the lighting model for <a href="MeshSSSNodeMaterial.html">MeshSSSNodeMaterial</a>.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="SSSLightingModel" translate="no">new <a href="#SSSLightingModel">SSSLightingModel</a><span class="signature">( clearcoat : <span class="param-type">boolean</span>, sheen : <span class="param-type">boolean</span>, iridescence : <span class="param-type">boolean</span>, anisotropy : <span class="param-type">boolean</span>, transmission : <span class="param-type">boolean</span>, dispersion : <span class="param-type">boolean</span>, sss : <span class="param-type">boolean</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new physical lighting model.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name">
  30. <strong>clearcoat</strong>
  31. </td>
  32. <td class="description last">
  33. <p>Whether clearcoat is supported or not.</p>
  34. <p>Default is <code>false</code>.</p>
  35. </td>
  36. </tr>
  37. <tr>
  38. <td class="name">
  39. <strong>sheen</strong>
  40. </td>
  41. <td class="description last">
  42. <p>Whether sheen is supported or not.</p>
  43. <p>Default is <code>false</code>.</p>
  44. </td>
  45. </tr>
  46. <tr>
  47. <td class="name">
  48. <strong>iridescence</strong>
  49. </td>
  50. <td class="description last">
  51. <p>Whether iridescence is supported or not.</p>
  52. <p>Default is <code>false</code>.</p>
  53. </td>
  54. </tr>
  55. <tr>
  56. <td class="name">
  57. <strong>anisotropy</strong>
  58. </td>
  59. <td class="description last">
  60. <p>Whether anisotropy is supported or not.</p>
  61. <p>Default is <code>false</code>.</p>
  62. </td>
  63. </tr>
  64. <tr>
  65. <td class="name">
  66. <strong>transmission</strong>
  67. </td>
  68. <td class="description last">
  69. <p>Whether transmission is supported or not.</p>
  70. <p>Default is <code>false</code>.</p>
  71. </td>
  72. </tr>
  73. <tr>
  74. <td class="name">
  75. <strong>dispersion</strong>
  76. </td>
  77. <td class="description last">
  78. <p>Whether dispersion is supported or not.</p>
  79. <p>Default is <code>false</code>.</p>
  80. </td>
  81. </tr>
  82. <tr>
  83. <td class="name">
  84. <strong>sss</strong>
  85. </td>
  86. <td class="description last">
  87. <p>Whether SSS is supported or not.</p>
  88. <p>Default is <code>false</code>.</p>
  89. </td>
  90. </tr>
  91. </tbody>
  92. </table>
  93. </div>
  94. </div>
  95. <h2 class="subsection-title">Properties</h2>
  96. <div class="member">
  97. <h3 class="name" id="useSSS" translate="no">.<a href="#useSSS">useSSS</a><span class="type-signature"> : boolean</span> </h3>
  98. <div class="description">
  99. <p>Whether the lighting model should use SSS or not.</p>
  100. <p>Default is <code>false</code>.</p>
  101. </div>
  102. </div>
  103. <h2 class="subsection-title">Methods</h2>
  104. <h3 class="name name-method" id="direct" translate="no">.<a href="#direct">direct</a><span class="signature">( input : <span class="param-type">Object</span>, builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
  105. <div class="method">
  106. <div class="description">
  107. <p>Extends the default implementation with a SSS term.</p>
  108. <p>Reference: <a href="https://colinbarrebrisebois.com/2011/03/07/gdc-2011-approximating-translucency-for-a-fast-cheap-and-convincing-subsurface-scattering-look/" target="_blank" rel="noopener">Approximating Translucency for a Fast, Cheap and Convincing Subsurface Scattering Look</a></p>
  109. </div>
  110. <table class="params">
  111. <tbody>
  112. <tr>
  113. <td class="name">
  114. <strong>input</strong>
  115. </td>
  116. <td class="description last">
  117. <p>The input data.</p>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td class="name">
  122. <strong>builder</strong>
  123. </td>
  124. <td class="description last">
  125. <p>The current node builder.</p>
  126. </td>
  127. </tr>
  128. </tbody>
  129. </table>
  130. <dl class="details">
  131. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PhysicalLightingModel.html#direct">PhysicalLightingModel#direct</a></dt>
  132. </dl>
  133. </div>
  134. <h2 class="subsection-title">Source</h2>
  135. <p>
  136. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/nodes/MeshSSSNodeMaterial.js" translate="no" target="_blank" rel="noopener">src/materials/nodes/MeshSSSNodeMaterial.js</a>
  137. </p>
  138. </article>
  139. </section>
  140. <script src="../scripts/linenumber.js"></script>
  141. <script src="../scripts/page.js"></script>
  142. </body>
  143. </html>
粤ICP备19079148号