ODE v0.5 用户指南- -| 回首页 | 2005年索引 | - -Octree室外场景脚本文件说明

ogre 透明材质物体的实现- -

                                      

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选项即可.

- 作者: lua 访问统计: 2005年08月12日, 星期五 19:09 加入博采

Trackback

你可以使用这个链接引用该篇文章 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]    望群山

回复

评论内容: