HemisphereLight.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <base href="../../" />
  6. <script src="list.js"></script>
  7. <script src="page.js"></script>
  8. <link type="text/css" rel="stylesheet" href="page.css" />
  9. </head>
  10. <body>
  11. [page:Object3D] &rarr; [page:Light] &rarr;
  12. <h1>[name]</h1>
  13. <div class="desc">A light source positioned directly above the scene.</div>
  14. <h2>Example</h2>
  15. <div>[example:webgl_lights_hemisphere lights / hemisphere ]</div>
  16. <div>[example:misc_controls_pointerlock controls / pointerlock ]</div>
  17. <div>[example:webgl_decals decals ]</div>
  18. <div>[example:webgl_loader_collada_kinematics loader / collada / kinematics ]</div>
  19. <div>[example:webgl_materials_lightmap materials / lightmap ]</div>
  20. <div>[example:webgl_shaders_ocean shaders / ocean ]</div>
  21. <code>var light = new THREE.HemisphereLight( 0xffffbb, 0x080820, 1 );
  22. scene.add( light );</code>
  23. <h2>Constructor</h2>
  24. <h3>[name]( [page:Integer skyColor], [page:Integer groundColor], [page:Float intensity] )</h3>
  25. <div>
  26. [page:Integer skyColor] — Numeric value of the RGB sky color.<br />
  27. [page:Integer groundColor] — Numeric value of the RGB ground color.<br />
  28. [page:Float intensity] — Numeric value of the light's strength/intensity.
  29. </div>
  30. <h2>Properties</h2>
  31. See the base [page:Light Light] class for common properties.
  32. <h3>[property:Float groundColor]</h3>
  33. <div>
  34. Light's ground color.<br />
  35. </div>
  36. <h2>Methods</h2>
  37. See the base [page:Light Light] class for common methods.
  38. <h3>[method:HemisphereLight copy]( [page:HemisphereLight source] )</h3>
  39. <div>
  40. <br />
  41. Copies value of *source* to this HemisphereLight object.
  42. </div>
  43. <h2>Source</h2>
  44. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  45. </body>
  46. </html>