Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2016-0-4 21:22

Class enchant.gl.AmbientLight

Class Summary
Constructor Attributes Constructor Name and Description
 
Class for setting light source in 3D scene.
Fields borrowed from class enchant.gl.Light3D:
color

Class Detail

enchant.gl.AmbientLight()
Class for setting light source in 3D scene. Environmental Light.
  var scene = new Scene3D();
  var light = new AmbientLight();
  light.color = [1.0, 1.0, 0.0];
  light.directionY = 10;
  scene.setAmbientLight(light);