| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>LightingContextNode - 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="EventDispatcher.html">EventDispatcher</a> → <a href="Node.html">Node</a> → <a href="ContextNode.html">ContextNode</a> → </p>
- <h1 translate="no">LightingContextNode</h1>
- <section>
- <header>
- <div class="class-description"><p><code>LightingContextNode</code> represents an extension of the <a href="ContextNode.html">ContextNode</a> module
- by adding lighting specific context data. It represents the runtime context of
- <a href="LightsNode.html">LightsNode</a>.</p></div>
- </header>
- <article>
- <div class="container-overview">
- <h2>Constructor</h2>
- <h3 class="name name-method" id="LightingContextNode" translate="no">new <a href="#LightingContextNode">LightingContextNode</a><span class="signature">( lightsNode : <span class="param-type">LightsNode</span>, lightingModel : <span class="param-type">LightingModel</span>, backdropNode : <span class="param-type">Node.<vec3></span>, backdropAlphaNode : <span class="param-type">Node.<float></span> )</span> </h3>
- <div class="method">
- <div class="description">
- <p>Constructs a new lighting context node.</p>
- </div>
- <table class="params">
- <tbody>
- <tr>
- <td class="name"><code>lightsNode</code></td>
- <td class="description last"><p>The lights node.</p></td>
- </tr>
- <tr>
- <td class="name"><code>lightingModel</code></td>
- <td class="description last"><p>The current lighting model.<br/>Default is <code>null</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>backdropNode</code></td>
- <td class="description last"><p>A backdrop node.<br/>Default is <code>null</code>.</p></td>
- </tr>
- <tr>
- <td class="name"><code>backdropAlphaNode</code></td>
- <td class="description last"><p>A backdrop alpha node.<br/>Default is <code>null</code>.</p></td>
- </tr>
- </tbody>
- </table>
- </div>
- </div>
- <h2 class="subsection-title">Properties</h2>
- <div class="member">
- <h3 class="name" id="backdropAlphaNode" translate="no">.<a href="#backdropAlphaNode">backdropAlphaNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.<float></span> </h3>
- <div class="description">
- <p>A backdrop alpha node.<br/>Default is <code>null</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="backdropNode" translate="no">.<a href="#backdropNode">backdropNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.<vec3></span> </h3>
- <div class="description">
- <p>A backdrop node.<br/>Default is <code>null</code>.</p>
- </div>
- </div>
- <div class="member">
- <h3 class="name" id="lightingModel" translate="no">.<a href="#lightingModel">lightingModel</a><span class="type-signature"> : <a href="LightingModel.html">LightingModel</a></span> </h3>
- <div class="description">
- <p>The current lighting model.<br/>Default is <code>null</code>.</p>
- </div>
- </div>
- <h2 class="subsection-title">Methods</h2>
- <h3 class="name name-method" id="getContext" translate="no">.<a href="#getContext">getContext</a><span class="signature">()</span><span class="type-signature"> : Object</span> </h3>
- <div class="method">
- <div class="description">
- <p>Returns a lighting context object.</p>
- </div>
- <dl class="details">
- <dt class="tag-returns"><strong>Returns:</strong> The lighting context object.</dt>
- </dl>
- </div>
- <h2 class="subsection-title">Source</h2>
- <p>
- <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/lighting/LightingContextNode.js" target="_blank" rel="noopener" translate="no">src/nodes/lighting/LightingContextNode.js</a>
- </p>
- </article>
- </section>
- <script src="../scripts/linenumber.js"></script>
- <script src="../scripts/page.js"></script>
- </body>
- </html>
|