LightingContextNode.html 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>LightingContextNode - 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="Node.html">Node</a> → <a href="ContextNode.html">ContextNode</a> → </p>
  13. <h1 translate="no">LightingContextNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p><code>LightingContextNode</code> represents an extension of the <a href="ContextNode.html">ContextNode</a> module
  17. by adding lighting specific context data. It represents the runtime context of
  18. <a href="LightsNode.html">LightsNode</a>.</p></div>
  19. </header>
  20. <article>
  21. <div class="container-overview">
  22. <h2>Constructor</h2>
  23. <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.&lt;vec3></span>, backdropAlphaNode : <span class="param-type">Node.&lt;float></span> )</span> </h3>
  24. <div class="method">
  25. <div class="description">
  26. <p>Constructs a new lighting context node.</p>
  27. </div>
  28. <table class="params">
  29. <tbody>
  30. <tr>
  31. <td class="name"><code>lightsNode</code></td>
  32. <td class="description last"><p>The lights node.</p></td>
  33. </tr>
  34. <tr>
  35. <td class="name"><code>lightingModel</code></td>
  36. <td class="description last"><p>The current lighting model.<br/>Default is <code>null</code>.</p></td>
  37. </tr>
  38. <tr>
  39. <td class="name"><code>backdropNode</code></td>
  40. <td class="description last"><p>A backdrop node.<br/>Default is <code>null</code>.</p></td>
  41. </tr>
  42. <tr>
  43. <td class="name"><code>backdropAlphaNode</code></td>
  44. <td class="description last"><p>A backdrop alpha node.<br/>Default is <code>null</code>.</p></td>
  45. </tr>
  46. </tbody>
  47. </table>
  48. </div>
  49. </div>
  50. <h2 class="subsection-title">Properties</h2>
  51. <div class="member">
  52. <h3 class="name" id="backdropAlphaNode" translate="no">.<a href="#backdropAlphaNode">backdropAlphaNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;float></span> </h3>
  53. <div class="description">
  54. <p>A backdrop alpha node.<br/>Default is <code>null</code>.</p>
  55. </div>
  56. </div>
  57. <div class="member">
  58. <h3 class="name" id="backdropNode" translate="no">.<a href="#backdropNode">backdropNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  59. <div class="description">
  60. <p>A backdrop node.<br/>Default is <code>null</code>.</p>
  61. </div>
  62. </div>
  63. <div class="member">
  64. <h3 class="name" id="lightingModel" translate="no">.<a href="#lightingModel">lightingModel</a><span class="type-signature"> : <a href="LightingModel.html">LightingModel</a></span> </h3>
  65. <div class="description">
  66. <p>The current lighting model.<br/>Default is <code>null</code>.</p>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Methods</h2>
  70. <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>
  71. <div class="method">
  72. <div class="description">
  73. <p>Returns a lighting context object.</p>
  74. </div>
  75. <dl class="details">
  76. <dt class="tag-returns"><strong>Returns:</strong> The lighting context object.</dt>
  77. </dl>
  78. </div>
  79. <h2 class="subsection-title">Source</h2>
  80. <p>
  81. <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>
  82. </p>
  83. </article>
  84. </section>
  85. <script src="../scripts/linenumber.js"></script>
  86. <script src="../scripts/page.js"></script>
  87. </body>
  88. </html>
粤ICP备19079148号