美文网首页
seethroughshader 裁剪模型使用

seethroughshader 裁剪模型使用

作者: Rayson | 来源:发表于2024-05-21 16:05 被阅读0次

1.新建一个空物体上面挂上脚本 STS—Global Rrplacement(用途是在程序运行时,替换材质)


2.被裁剪的物体的层级需要设置成 Transparent的层


3.创建裁剪体积,体积需要有碰撞 。并加入see thought shader zon


通过控制材质球控制裁剪的边缘效果
在运行时才会有裁剪效果


相关文章

网友评论

      本文标题:seethroughshader 裁剪模型使用

      本文链接:https://www.haomeiwen.com/subject/uvjafjtx.html