author: lua date:2005-8-12
Your best bet would be to vary the alpha component of the diffuse color of the material, ie, pass->setDiffuseColour
This is then used as alpha value for the entire material.
Make sure to use "scene_blend alpha_blend" and "depth_write off" in the material script for transparent objects
设置一幅具有alpha通道的图片到diffuse colour(应该是默认方式), 在材质中加入scene_blend src_alpha one_minus_src_alpha
和depth_write off选项即可.
你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=2569208
[2005-08-12] 谁能给你一双温暖的手?
[2005-08-12] 超级可爱的赵雅芝Q版图集
[2005-08-12] 从几天以前开始,我告别CM了
[2005-08-12] 再见萤火虫
[2005-08-12] 望群山