| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>PhongLightingModel - 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="BasicLightingModel.html">BasicLightingModel</a> → </p>
- <h1 translate="no">PhongLightingModel</h1>
- <section>
- <header>
- <div class="class-description"><p>Represents the lighting model for a phong material. Used in <a href="MeshPhongNodeMaterial.html">MeshPhongNodeMaterial</a>.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="PhongLightingModel" translate="no">new <a href="#PhongLightingModel">PhongLightingModel</a><span class="signature">( specular : <span class="param-type">boolean</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new phong lighting model.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>specular</strong>
- </td>
- <td class="description last">
- <p>Whether specular is supported or not.</p>
- <p>Default is <code>true</code>.</p>
- </td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="specular" translate="no">.<a href="#specular">specular</a><span class="type-signature"> : boolean</span> </h3>
- <div class="description">
- <p>Whether specular is supported or not. Set this to <code>false</code> if you are
- looking for a Lambert-like material meaning a material for non-shiny
- surfaces, without specular highlights.</p>
- <p>Default is <code>true</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">( lightData : <span class="param-type">Object</span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Implements the direct lighting. The specular portion is optional an can be controlled
- with the <a href="PhongLightingModel.html#specular">PhongLightingModel#specular</a> flag.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>lightData</strong>
- </td>
- <td class="description last">
- <p>The light data.</p>
- </td>
- </tr>
- </tbody>
- </table>
- <dl class="details">
- <dt class="tag-overrides"><strong>Overrides:</strong> <a href="BasicLightingModel.html#direct">BasicLightingModel#direct</a></dt>
- </dl>
- </div>
- <h3 class="name name-method" id="indirect" translate="no">.<a href="#indirect">indirect</a><span class="signature">( builder : <span class="param-type"><a href="NodeBuilder.html">NodeBuilder</a></span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Implements the indirect lighting.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name">
- <strong>builder</strong>
- </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="BasicLightingModel.html#indirect">BasicLightingModel#indirect</a></dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/functions/PhongLightingModel.js" translate="no" target="_blank" rel="noopener">src/nodes/functions/PhongLightingModel.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|