1.新建一个空物体上面挂上脚本 STS—Global Rrplacement(用途是在程序运行时,替换材质)
![](https://img.haomeiwen.com/i11652549/acd092c03ac1d5f9.png)
2.被裁剪的物体的层级需要设置成 Transparent的层
![](https://img.haomeiwen.com/i11652549/e2934cd3849b974e.png)
3.创建裁剪体积,体积需要有碰撞 。并加入see thought shader zon
![](https://img.haomeiwen.com/i11652549/773aa48c1d35fe9d.png)
通过控制材质球控制裁剪的边缘效果
在运行时才会有裁剪效果
![](https://img.haomeiwen.com/i11652549/362a7f5d091149e5.png)
1.新建一个空物体上面挂上脚本 STS—Global Rrplacement(用途是在程序运行时,替换材质)
2.被裁剪的物体的层级需要设置成 Transparent的层
3.创建裁剪体积,体积需要有碰撞 。并加入see thought shader zon
通过控制材质球控制裁剪的边缘效果
在运行时才会有裁剪效果
本文标题:seethroughshader 裁剪模型使用
本文链接:https://www.haomeiwen.com/subject/uvjafjtx.html
网友评论