| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>SSSLightingModel - Three.js Docs</title>
- <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
- <script src="../scripts/highlight.min.js"></script>
- <link type="text/css" rel="stylesheet" href="../styles/highlight-three.css">
- <link type="text/css" rel="stylesheet" href="../styles/page.css">
- </head>
- <body>
- <p class="inheritance" translate="no"><a href="LightingModel.html">LightingModel</a> → <a href="PhysicalLightingModel.html">PhysicalLightingModel</a> → </p>
- <h1 translate="no">SSSLightingModel</h1>
- <section>
- <header>
- <div class="class-description"><p>Represents the lighting model for <a href="MeshSSSNodeMaterial.html">MeshSSSNodeMaterial</a>.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <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>
- <div class="method">
- <div class="description">
- <p>Constructs a new physical lighting model.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>clearcoat</code></td>
- <td class="description last"><p>Whether clearcoat is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>sheen</code></td>
- <td class="description last"><p>Whether sheen is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>iridescence</code></td>
- <td class="description last"><p>Whether iridescence is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>anisotropy</code></td>
- <td class="description last"><p>Whether anisotropy is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>transmission</code></td>
- <td class="description last"><p>Whether transmission is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>dispersion</code></td>
- <td class="description last"><p>Whether dispersion is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>sss</code></td>
- <td class="description last"><p>Whether SSS is supported or not.<br/>Default is <code>false</code>.</p></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="useSSS" translate="no">.<a href="#useSSS">useSSS</a><span class="type-signature"> : boolean</span> </h3>
- <div class="description">
- <p>Whether the lighting model should use SSS or not.<br/>Default is <code>false</code>.</p>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <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>
- <div class="method">
- <div class="description">
- <p>Extends the default implementation with a SSS term.</p>
- <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>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>input</code></td>
- <td class="description last"><p>The input data.</p></td>
- </tr>
- <tr>
- <td class="name"><code>builder</code></td>
- <td class="description last"><p>The current node builder.</p></td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-overrides"><strong>Overrides:</strong> <a href="PhysicalLightingModel.html#direct">PhysicalLightingModel#direct</a></dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <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>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|