游戏开发论坛

 找回密码
 立即注册
搜索
查看: 4481|回复: 1

Ogre透明材质的实现

[复制链接]

8

主题

21

帖子

27

积分

注册会员

Rank: 2

积分
27
发表于 2007-9-4 14:07:00 | 显示全部楼层 |阅读模式
请问各位,我在Ogre里搞了个特效,可是原本贴图里应该是透明的地方在游戏里显示成黑色,看了极为不爽,Ogre里有默认的透明色吗?如果没有该怎么改

1

主题

17

帖子

24

积分

注册会员

Rank: 2

积分
24
发表于 2007-11-19 17:42:00 | 显示全部楼层

Re:Ogre透明材质的实现

这样试试
material test_skin
{
        technique
        {
                pass
                {
                        lighting off
                        scene_blend alpha_blend
                        //alpha_rejection greater 128
                        depth_write off

                        cull_hardware none
                        cull_software none
                       
                        texture_unit
                        {
                                texture test01.png
                        }
                }
        }
}
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

作品发布|文章投稿|广告合作|关于本站|游戏开发论坛 ( 闽ICP备17032699号-3 )

GMT+8, 2025-6-17 23:51

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表