Class enchant.gl.AmbientLight
- Defined in: gl.enchant.js
- Extends enchant.gl.Light3D
Constructor Attributes | Constructor Name and Description |
---|---|
3Dシーンでの光源を設定するクラス.
|
- 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.AmbientLight()
3Dシーンでの光源を設定するクラス.
環境光を設定する.
var scene = new Scene3D(); var light = new AmbientLight(); light.color = [1.0, 1.0, 0.0]; light.directionY = 10; scene.setAmbientLight(light);