AmbientLight.rst 569 B

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