HemisphereLightNode.html 3.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>HemisphereLightNode - 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="LightingNode.html">LightingNode</a> → <a href="AnalyticLightNode.html">AnalyticLightNode</a> → </p>
  13. <h1 translate="no">HemisphereLightNode</h1>
  14. <section>
  15. <header>
  16. <div class="class-description"><p>Module for representing hemisphere lights as nodes.</p></div>
  17. </header>
  18. <article>
  19. <div class="container-overview">
  20. <h2>Constructor</h2>
  21. <h3 class="name name-method" id="HemisphereLightNode" translate="no">new <a href="#HemisphereLightNode">HemisphereLightNode</a><span class="signature">( light : <span class="param-type">HemisphereLight</span> )</span> </h3>
  22. <div class="method">
  23. <div class="description">
  24. <p>Constructs a new hemisphere light node.</p>
  25. </div>
  26. <table class="params">
  27. <tbody>
  28. <tr>
  29. <td class="name"><code>light</code></td>
  30. <td class="description last"><p>The hemisphere light source.<br/>Default is <code>null</code>.</p></td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. </div>
  35. </div>
  36. <h2 class="subsection-title">Properties</h2>
  37. <div class="member">
  38. <h3 class="name" id="groundColorNode" translate="no">.<a href="#groundColorNode">groundColorNode</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a>.&lt;vec3></span> </h3>
  39. <div class="description">
  40. <p>Uniform node representing the light's ground color.</p>
  41. </div>
  42. </div>
  43. <div class="member">
  44. <h3 class="name" id="lightDirectionNode" translate="no">.<a href="#lightDirectionNode">lightDirectionNode</a><span class="type-signature"> : <a href="Node.html">Node</a>.&lt;vec3></span> </h3>
  45. <div class="description">
  46. <p>A node representing the light's direction.</p>
  47. </div>
  48. </div>
  49. <div class="member">
  50. <h3 class="name" id="lightPositionNode" translate="no">.<a href="#lightPositionNode">lightPositionNode</a><span class="type-signature"> : <a href="UniformNode.html">UniformNode</a>.&lt;vec3></span> </h3>
  51. <div class="description">
  52. <p>Uniform node representing the light's position.</p>
  53. </div>
  54. </div>
  55. <h2 class="subsection-title">Methods</h2>
  56. <h3 class="name name-method" id="update" translate="no">.<a href="#update">update</a><span class="signature">( frame : <span class="param-type">NodeFrame</span> )</span> </h3>
  57. <div class="method">
  58. <div class="description">
  59. <p>Overwritten to updated hemisphere light specific uniforms.</p>
  60. </div>
  61. <table class="params">
  62. <tbody>
  63. <tr>
  64. <td class="name"><code>frame</code></td>
  65. <td class="description last"><p>A reference to the current node frame.</p></td>
  66. </tr>
  67. </tbody>
  68. </table>
  69. <dl class="details">
  70. <dt class="tag-overrides"><strong>Overrides:</strong> <a href="AnalyticLightNode.html#update">AnalyticLightNode#update</a></dt>
  71. </dl>
  72. </div>
  73. <h2 class="subsection-title">Source</h2>
  74. <p>
  75. <a href="https://github.com/mrdoob/three.js/blob/master/src/nodes/lighting/HemisphereLightNode.js" target="_blank" rel="noopener" translate="no">src/nodes/lighting/HemisphereLightNode.js</a>
  76. </p>
  77. </article>
  78. </section>
  79. <script src="../scripts/linenumber.js"></script>
  80. <script src="../scripts/page.js"></script>
  81. </body>
  82. </html>
粤ICP备19079148号