MeshSSSNodeMaterial.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>MeshSSSNodeMaterial - 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="Material.html">Material</a> → <a href="NodeMaterial.html">NodeMaterial</a> → <a href="MeshStandardNodeMaterial.html">MeshStandardNodeMaterial</a> → <a href="MeshPhysicalNodeMaterial.html">MeshPhysicalNodeMaterial</a> → </p>
  13. <h1 translate="no">MeshSSSNodeMaterial</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>This node material is an experimental extension of <a href="MeshPhysicalNodeMaterial.html">MeshPhysicalNodeMaterial</a>
  17. that implements a Subsurface scattering (SSS) term.</p></div>
  18. </header>
  19. <article>
  20. <div class="container-overview">
  21. <h2>Constructor</h2>
  22. <h3 class="name name-method" id="MeshSSSNodeMaterial" translate="no">new <a href="#MeshSSSNodeMaterial">MeshSSSNodeMaterial</a><span class="signature">( parameters : <span class="param-type">Object</span> )</span> </h3>
  23. <div class="method">
  24. <div class="description">
  25. <p>Constructs a new mesh SSS node material.</p>
  26. </div>
  27. <table class="params">
  28. <tbody>
  29. <tr>
  30. <td class="name">
  31. <strong>parameters</strong>
  32. </td>
  33. <td class="description last">
  34. <p>The configuration parameter.</p>
  35. </td>
  36. </tr>
  37. </tbody>
  38. </table>
  39. </div>
  40. </div>
  41. <h2 class="subsection-title">Properties</h2>
  42. <div class="member">
  43. <h3 class="name" id="thicknessAmbientNode" translate="no">.<a href="#thicknessAmbientNode">thicknessAmbientNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  44. <div class="description">
  45. <p>Represents the thickness ambient factor.</p>
  46. </div>
  47. </div>
  48. <div class="member">
  49. <h3 class="name" id="thicknessAttenuationNode" translate="no">.<a href="#thicknessAttenuationNode">thicknessAttenuationNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  50. <div class="description">
  51. <p>Represents the thickness attenuation.</p>
  52. </div>
  53. </div>
  54. <div class="member">
  55. <h3 class="name" id="thicknessColorNode" translate="no">.<a href="#thicknessColorNode">thicknessColorNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  56. <div class="description">
  57. <p>Represents the thickness color.</p>
  58. <p>Default is <code>null</code>.</p>
  59. </div>
  60. </div>
  61. <div class="member">
  62. <h3 class="name" id="thicknessDistortionNode" translate="no">.<a href="#thicknessDistortionNode">thicknessDistortionNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  63. <div class="description">
  64. <p>Represents the distortion factor.</p>
  65. </div>
  66. </div>
  67. <div class="member">
  68. <h3 class="name" id="thicknessPowerNode" translate="no">.<a href="#thicknessPowerNode">thicknessPowerNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  69. <div class="description">
  70. <p>Represents the thickness power.</p>
  71. </div>
  72. </div>
  73. <div class="member">
  74. <h3 class="name" id="thicknessScaleNode" translate="no">.<a href="#thicknessScaleNode">thicknessScaleNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  75. <div class="description">
  76. <p>Represents the thickness scale.</p>
  77. </div>
  78. </div>
  79. <div class="member">
  80. <h3 class="name" id="useSSS" translate="no">.<a href="#useSSS">useSSS</a><span class="type-signature"> : boolean</span> </h3>
  81. <div class="description">
  82. <p>Whether the lighting model should use SSS or not.</p>
  83. <p>Default is <code>true</code>.</p>
  84. </div>
  85. </div>
  86. <h2 class="subsection-title">Methods</h2>
  87. <h3 class="name name-method" id="setupLightingModel" translate="no">.<a href="#setupLightingModel">setupLightingModel</a><span class="signature">()</span><span class="type-signature"> : <a href="SSSLightingModel.html">SSSLightingModel</a></span> </h3>
  88. <div class="method">
  89. <div class="description">
  90. <p>Setups the lighting model.</p>
  91. </div>
  92. <dl class="details">
  93. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="MeshPhysicalNodeMaterial.html#setupLightingModel">MeshPhysicalNodeMaterial#setupLightingModel</a></dt>
  94. </dl>
  95. <dl class="details">
  96. <dt class="tag-returns"><strong>Returns:</strong> The lighting model.</dt>
  97. </dl>
  98. </div>
  99. <h2 class="subsection-title">Source</h2>
  100. <p>
  101. <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>
  102. </p>
  103. </article>
  104. </section>
  105. <script src="../scripts/linenumber.js"></script>
  106. <script src="../scripts/page.js"></script>
  107. </body>
  108. </html>
粤ICP备19079148号