HemisphereLight.html 1.8 KB

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