|
参考: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
} } }
}
|