您的位置:首页 > 其它

Ogre材质脚本

2014-09-25 16:28 302 查看
Ogre SDK版本: 1.9.0

Ogre SDK的media/materials/scripts 目录下的Example.mateiral, 示例材质。

Ogre材质脚本语法

注释: // 单行注释

/**/ 多行注释

关键字:

texture 定义纹理 如:

texture XXXXX.jpg

ambient 设置环境光如:

ambient 1.0 1.0 1.0

diffuse 满反射光

shading phong 着色模式

One - 常数1.0

Zero - 常数0

lighting on

lighting off

scene_blend <src_factor> <dest_factor> 混合方式
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: