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

Class enchant.gl.PointLight

Class Summary
Constructor Attributes Constructor Name and Description
 
Class that sets 3D scene light source.
Field Summary
Field Attributes Field Name and Description
 
x
Light source x axis
 
y
Light source y axis
 
z
Light source z axis
Fields borrowed from class enchant.gl.Light3D:
color

Class Detail

enchant.gl.PointLight()
Class that sets 3D scene light source. Directionless positional light source. At present, will not be applied even if added to scene.
  var scene = new Scene3D();
  var light = new PointLight();
  light.color = [1.0, 1.0, 0.0];
  light.y = 10;
  scene.addLight(light);

Field Detail

{Number} x
Light source x axis
{Number} y
Light source y axis
{Number} z
Light source z axis