Main Page: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 1: | Line 1: | ||
=描述= |
|||
{{Main Page/en}} |
|||
环境光类,功能包括环境光的创建、设置等相关操作。 |
|||
[[Category:English]] |
|||
=技术参数= |
|||
[[Category:EN]] |
|||
==属性== |
|||
__NOTOC__ |
|||
{| class="wikitable sortable" |
|||
__NOEDITSECTION__ |
|||
|- |
|||
! 属性 !! 类型 !! 描述 |
|||
|- |
|||
| name || stirng || 环境光名称 |
|||
|- |
|||
| color || unit|| 颜色值 |
|||
|} |
|||
==构造方法== |
|||
+ 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) |
|||
=下载= |
|||
[http://fancyguo.com/upload/ambientlight.lua ambientlight.lua] |
|||
=运行代码= |
|||
[http://fancyguo.com/upload/run.html?ambientlight.lua 运行] |
Revision as of 12:56, 11 April 2013
描述
环境光类,功能包括环境光的创建、设置等相关操作。
技术参数
属性
属性 | 类型 | 描述 |
---|---|---|
name | stirng | 环境光名称 |
color | unit | 颜色值 |
构造方法
+ 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)