AmbientLight.rst 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. AmbientLight - An ambient light
  2. -------------------------------
  3. .. ...............................................................................
  4. .. rubric:: Constructor
  5. .. ...............................................................................
  6. .. class:: AmbientLight( hex )
  7. An ambient light
  8. Inherits from :class:`Light` :class:`Object3D`
  9. Affects :class:`MeshLambertMaterial` and :class:`MeshPhongMaterial`
  10. :param integer hex: light color
  11. .. ...............................................................................
  12. .. rubric:: Attributes
  13. .. ...............................................................................
  14. .. attribute:: AmbientLight.color
  15. Light :class:`Color`
  16. Material's ambient color gets multiplied by this color.
  17. .. ...............................................................................
  18. .. rubric:: Example
  19. .. ...............................................................................
  20. ::
  21. var ambientLight = new THREE.AmbientLight( 0x333333 );
  22. scene.add( ambientLight );