1
0

LightingContextNode.html 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  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"><a href="LightsNode.html">LightsNode</a></span>, lightingModel : <span class="param-type"><a href="LightingModel.html">LightingModel</a></span>, backdropNode : <span class="param-type"><a href="Node.html">Node</a>.&lt;vec3></span>, backdropAlphaNode : <span class="param-type"><a href="Node.html">Node</a>.&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">
  32. <strong>lightsNode</strong>
  33. </td>
  34. <td class="description last">
  35. <p>The lights node.</p>
  36. </td>
  37. </tr>
  38. <tr>
  39. <td class="name">
  40. <strong>lightingModel</strong>
  41. </td>
  42. <td class="description last">
  43. <p>The current lighting model.</p>
  44. <p>Default is <code>null</code>.</p>
  45. </td>
  46. </tr>
  47. <tr>
  48. <td class="name">
  49. <strong>backdropNode</strong>
  50. </td>
  51. <td class="description last">
  52. <p>A backdrop node.</p>
  53. <p>Default is <code>null</code>.</p>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="name">
  58. <strong>backdropAlphaNode</strong>
  59. </td>
  60. <td class="description last">
  61. <p>A backdrop alpha node.</p>
  62. <p>Default is <code>null</code>.</p>
  63. </td>
  64. </tr>
  65. </tbody>
  66. </table>
  67. </div>
  68. </div>
  69. <h2 class="subsection-title">Properties</h2>
  70. <div class="member">
  71. <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>
  72. <div class="description">
  73. <p>A backdrop alpha node.</p>
  74. <p>Default is <code>null</code>.</p>
  75. </div>
  76. </div>
  77. <div class="member">
  78. <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>
  79. <div class="description">
  80. <p>A backdrop node.</p>
  81. <p>Default is <code>null</code>.</p>
  82. </div>
  83. </div>
  84. <div class="member">
  85. <h3 class="name" id="lightingModel" translate="no">.<a href="#lightingModel">lightingModel</a><span class="type-signature"> : <a href="LightingModel.html">LightingModel</a></span> </h3>
  86. <div class="description">
  87. <p>The current lighting model.</p>
  88. <p>Default is <code>null</code>.</p>
  89. </div>
  90. </div>
  91. <h2 class="subsection-title">Methods</h2>
  92. <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>
  93. <div class="method">
  94. <div class="description">
  95. <p>Returns a lighting context object.</p>
  96. </div>
  97. <dl class="details">
  98. <dt class="tag-returns"><strong>Returns:</strong> The lighting context object.</dt>
  99. </dl>
  100. </div>
  101. <h2 class="subsection-title">Source</h2>
  102. <p>
  103. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/lighting/LightingContextNode.js" translate="no" target="_blank" rel="noopener">src/nodes/lighting/LightingContextNode.js</a>
  104. </p>
  105. </article>
  106. </section>
  107. <script src="../scripts/linenumber.js"></script>
  108. <script src="../scripts/page.js"></script>
  109. </body>
  110. </html>
粤ICP备19079148号