+ | color : uint |
颜色值。
|
+ | darkAmbient: bool |
设置环境光为暗部环境光。
|
+ | name : string |
环境光名称。
|
+ | power : number |
光强度,取值范围1~100。
|
+ | function _AmbientLight() : _AmbientLight |
构造环境光。
|
_dofile('cameracontrol.lua')teapot = _mf:createTeapot()_rd.camera.eye = _Vector3.new(3, 3, 3)ambient = _AmbientLight.new()ambient.color = _Color.Green_rd:useLight(ambient)_app:onIdle(function(e) teapot:drawMesh()end)