HemisphereLight.html 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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 skyColorHex], [page:Integer groundColorHex], [page:Float intensity])</h3>
  25. <div>
  26. [page:Integer skyColorHex] — Numeric value of the RGB sky color.<br />
  27. [page:Integer groundColorHex] — 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. <h3>[property:Float groundColor]</h3>
  32. <div>
  33. Light's ground color.<br />
  34. </div>
  35. <h3>[property:Float intensity]</h3>
  36. <div>
  37. Light's intensity.<br />
  38. Default — *1.0*.
  39. </div>
  40. <h2>Methods</h2>
  41. <h3>[method:HemisphereLight clone]()</h3>
  42. <div>
  43. <br />
  44. It returns a clone of HemisphereLight.
  45. </div>
  46. <h3>[method:JSON toJSON]()</h3>
  47. <div>
  48. Return HemisphereLight data in JSON format.
  49. </div>
  50. <h2>Source</h2>
  51. [link:https://github.com/mrdoob/three.js/blob/master/src/[path].js src/[path].js]
  52. </body>
  53. </html>