Ogre::MaterialPtr
来源:互联网 发布:ubuntu显卡驱动安装 编辑:程序博客网 时间:2024/06/05 20:05
Ogre中的材质一般都是读取*.material尾缀的文件。
1.首先使用Ogre::MaterialManager中的create方法创建一个材质,例如:
Ogre::MaterialPtr red
= Ogre::MaterialManager::getSingleton().create("DebugLines/Disabled","DebugLines");
= Ogre::MaterialManager::getSingleton().create("DebugLines/Disabled","DebugLines");
第一个参数为 材质名;
第二个参数为 资源组,用来卸载的时候用。
2.设置材质的数据,比如:
red->setReceiveShadows(false);
red->getTechnique(0)->setLightingEnabled(true);
red->getTechnique(0)->getPass(0)->setSelfIllumination(1, 0, 0);
red->getTechnique(0)->setLightingEnabled(true);
red->getTechnique(0)->getPass(0)->setSelfIllumination(1, 0, 0);
这样一个材质可以说就创建好了。
- Ogre::MaterialPtr
- Ogre
- ogre
- OGRE
- OGRE
- ogre
- OGRE
- ogre
- OGRE乱记二
- OGRE乱记三
- 关于OGRE
- 学习OGRE~~
- Ogre介绍
- Ogre网站
- ogre+mfc
- 学习Ogre
- 初涉 OGRE
- 开始ogre
- Visual Studio 2008 SP1 补丁安装时发生严重错误-安装失败-解决方法整合版!-分享
- 工作一年总结
- first
- Jetty体系结构概述
- 基本结算流程确定
- Ogre::MaterialPtr
- 自定义UserControl
- 需求分析_如何获得需求
- 繁忙的年底
- 题目:2011年浙江省公务员考试职位表已经发布-2011浙江省考大纲
- linux线程,生产者消费者例子
- java编程心得(九)——序列化(Serializable)
- 數據庫無法附加
- 第一章 血战李家坡