1
0

MeshSSSNodeMaterial.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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"><code>parameters</code></td>
  31. <td class="description last"><p>The configuration parameter.</p></td>
  32. </tr>
  33. </tbody>
  34. </table>
  35. </div>
  36. </div>
  37. <h2 class="subsection-title">Properties</h2>
  38. <div class="member">
  39. <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>
  40. <div class="description">
  41. <p>Represents the thickness ambient factor.</p>
  42. </div>
  43. </div>
  44. <div class="member">
  45. <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>
  46. <div class="description">
  47. <p>Represents the thickness attenuation.</p>
  48. </div>
  49. </div>
  50. <div class="member">
  51. <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>
  52. <div class="description">
  53. <p>Represents the thickness color.<br/>Default is <code>null</code>.</p>
  54. </div>
  55. </div>
  56. <div class="member">
  57. <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>
  58. <div class="description">
  59. <p>Represents the distortion factor.</p>
  60. </div>
  61. </div>
  62. <div class="member">
  63. <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>
  64. <div class="description">
  65. <p>Represents the thickness power.</p>
  66. </div>
  67. </div>
  68. <div class="member">
  69. <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>
  70. <div class="description">
  71. <p>Represents the thickness scale.</p>
  72. </div>
  73. </div>
  74. <div class="member">
  75. <h3 class="name" id="useSSS" translate="no">.<a href="#useSSS">useSSS</a><span class="type-signature"> : boolean</span> </h3>
  76. <div class="description">
  77. <p>Whether the lighting model should use SSS or not.<br/>Default is <code>true</code>.</p>
  78. </div>
  79. </div>
  80. <h2 class="subsection-title">Methods</h2>
  81. <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>
  82. <div class="method">
  83. <div class="description">
  84. <p>Setups the lighting model.</p>
  85. </div>
  86. <dl class="details">
  87. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="MeshPhysicalNodeMaterial.html#setupLightingModel">MeshPhysicalNodeMaterial#setupLightingModel</a></dt>
  88. </dl>
  89. <dl class="details">
  90. <dt class="tag-returns"><strong>Returns:</strong> The lighting model.</dt>
  91. </dl>
  92. </div>
  93. <h2 class="subsection-title">Source</h2>
  94. <p>
  95. <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>
  96. </p>
  97. </article>
  98. </section>
  99. <script src="../scripts/linenumber.js"></script>
  100. <script src="../scripts/page.js"></script>
  101. </body>
  102. </html>
粤ICP备19079148号