SSSLightingModel.html 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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"><code>clearcoat</code></td>
  30. <td class="description last"><p>Whether clearcoat is supported or not.<br/>Default is <code>false</code>.</p></td>
  31. </tr>
  32. <tr>
  33. <td class="name"><code>sheen</code></td>
  34. <td class="description last"><p>Whether sheen is supported or not.<br/>Default is <code>false</code>.</p></td>
  35. </tr>
  36. <tr>
  37. <td class="name"><code>iridescence</code></td>
  38. <td class="description last"><p>Whether iridescence is supported or not.<br/>Default is <code>false</code>.</p></td>
  39. </tr>
  40. <tr>
  41. <td class="name"><code>anisotropy</code></td>
  42. <td class="description last"><p>Whether anisotropy is supported or not.<br/>Default is <code>false</code>.</p></td>
  43. </tr>
  44. <tr>
  45. <td class="name"><code>transmission</code></td>
  46. <td class="description last"><p>Whether transmission is supported or not.<br/>Default is <code>false</code>.</p></td>
  47. </tr>
  48. <tr>
  49. <td class="name"><code>dispersion</code></td>
  50. <td class="description last"><p>Whether dispersion is supported or not.<br/>Default is <code>false</code>.</p></td>
  51. </tr>
  52. <tr>
  53. <td class="name"><code>sss</code></td>
  54. <td class="description last"><p>Whether SSS is supported or not.<br/>Default is <code>false</code>.</p></td>
  55. </tr>
  56. </tbody>
  57. </table>
  58. </div>
  59. </div>
  60. <h2 class="subsection-title">Properties</h2>
  61. <div class="member">
  62. <h3 class="name" id="useSSS" translate="no">.<a href="#useSSS">useSSS</a><span class="type-signature"> : boolean</span> </h3>
  63. <div class="description">
  64. <p>Whether the lighting model should use SSS or not.<br/>Default is <code>false</code>.</p>
  65. </div>
  66. </div>
  67. <h2 class="subsection-title">Methods</h2>
  68. <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">NodeBuilder</span> )</span> </h3>
  69. <div class="method">
  70. <div class="description">
  71. <p>Extends the default implementation with a SSS term.</p>
  72. <p>Reference: <a href="https://colinbarrebrisebois.com/2011/03/07/gdc-2011-approximating-translucency-for-a-fast-cheap-and-convincing-subsurface-scattering-look/">Approximating Translucency for a Fast, Cheap and Convincing Subsurface Scattering Look</a></p>
  73. </div>
  74. <table class="params">
  75. <tbody>
  76. <tr>
  77. <td class="name"><code>input</code></td>
  78. <td class="description last"><p>The input data.</p></td>
  79. </tr>
  80. <tr>
  81. <td class="name"><code>builder</code></td>
  82. <td class="description last"><p>The current node builder.</p></td>
  83. </tr>
  84. </tbody>
  85. </table>
  86. <dl class="details">
  87. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PhysicalLightingModel.html#direct">PhysicalLightingModel#direct</a></dt>
  88. </dl>
  89. </div>
  90. <h2 class="subsection-title">Source</h2>
  91. <p>
  92. <a href="https://github.com/mrdoob/three.js/blob/master/src/materials/nodes/MeshSSSNodeMaterial.js" target="_blank" rel="noopener" translate="no">src/materials/nodes/MeshSSSNodeMaterial.js</a>
  93. </p>
  94. </article>
  95. </section>
  96. <script src="../scripts/linenumber.js"></script>
  97. <script src="../scripts/page.js"></script>
  98. </body>
  99. </html>
粤ICP备19079148号