Class enchant.gl.PointLight
- Defined in: gl.enchant.js
- Extends enchant.gl.Light3D
Constructor Attributes | Constructor Name and Description |
---|---|
Class that sets 3D scene light source.
|
Field Attributes | Field Name and Description |
---|---|
Light source x axis
|
|
Light source y axis
|
|
Light source z axis
|
- Fields borrowed from class enchant.gl.Light3D:
- color
Method Summary
- Methods borrowed from class enchant.EventTarget:
- addEventListener
- clearEventListener
- dispatchEvent
- on
- removeEventListener
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