首页 > 编程语言 > 详细

unity3d: how to display the obj behind the wall

时间:2015-01-14 09:35:15      阅读:323      评论:0      收藏:0      [点我收藏+]

透墙显示,遮挡显示,使用ztest

 

Tags { "Queue"="Overlay+1" "RenderType"="Transparent"}
     Pass
     {
         // 透视效果,关闭cull
          Cull Off
          // 不记录深度值
         ZWrite Off
         // 被遮挡的也渲染出来,也可以使用always
         ZTest Greater
         Lighting Off
// 设置混合,效果更好 Blend One One Fog {Mode off} Color [_Color] SetTexture [_MainTex] { combine texture
* primary, texture } }

 

unity3d: how to display the obj behind the wall

原文:http://www.cnblogs.com/lightlfyan/p/4223065.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!