Ogre的透明贴图
来源:互联网 发布:vb.net 调用大漠 编辑:程序博客网 时间:2024/05/07 16:54
参考:http://www.cnblogs.com/virtorld/archive/2012/11/16/2773328.html
Ogre加载模型可以用两种透明贴图,
一种是自带透明信息的PNG格式,material文件里要有sene_blend alpha_blend
material Bill_Texture
{
technique
{
pass
{
ambient 0.588 0.588 0.588 1
diffuse 0.588 0.588 0.588 1
specular 0 0 0 1 10
sene_blend alpha_blend
depth_write off
cull_hardware none // 双面
cull_software none
texture_unit
{
texture checker.png
}
}
}
}
一种是用黑白蒙版(遮罩)贴图的JPG或PNG格式,material文件里要有scene_blend add
material Bill_Texture
{
technique
{
pass
{
ambient 0.588 0.588 0.588 1
diffuse 0.588 0.588 0.588 1
specular 0 0 0 1 10
sene_blend add
depth_write off
cull_hardware none // 双面
cull_software none
texture_unit
{
texture checker.png
}
}
}
}
0 0
- Ogre的透明贴图
- Ogre::材质之透明贴图和纹理操作
- 贴图透明特效的实现
- Ogre中透空贴图材质的实现
- 关于ogre公告板的双面贴图
- PNG贴图透明和模型双面贴图的问题
- OGRE 投影贴图
- bitblt透明贴图原理
- 透明贴图TransparentBlt函数
- TGA透明贴图
- WIN32 透明贴图
- TGA透明贴图
- bmp透明贴图
- 图形透明贴图
- MFC 贴透明贴图
- ffmpeg透明贴图
- GDI透明贴图
- MFC透明贴图问题
- 利用pl/sql读文件
- C指针原理(75)-GLIB
- java编程细节
- Java复合赋值运算
- vs2008 编译驱动
- Ogre的透明贴图
- Linux find 用法示例
- python 学习笔记11-----类
- Android服务(Service)概述
- Android中的Handler机制
- 01、老徐教你学C语言基础篇1——C语言不得不说的秘密(历史篇)——理论
- ORA-20211: Active job record exists问题解决
- Matlab 常用命令集锦---数组操作
- special training