Class enchant.gl.DirectionalLight
- Defined in: gl.enchant.js
- Extends enchant.gl.Light3D
Constructor Attributes | Constructor Name and Description |
---|---|
3Dシーンでの光源を設定するクラス.
|
Field Attributes | Field Name and Description |
---|---|
光源の照射方向のx成分
|
|
光源の照射方向のy成分
|
|
光源の照射方向のz成分
|
- 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.DirectionalLight()
3Dシーンでの光源を設定するクラス.
位置を持たない方向光源.
var scene = new Scene3D(); var light = new DirectionalLight(); light.color = [1.0, 1.0, 0.0]; light.directionY = 10; scene.setDirectionalLight(light);
Field Detail
{Number}
directionX
光源の照射方向のx成分
{Number}
directionY
光源の照射方向のy成分
{Number}
directionZ
光源の照射方向のz成分