美文网首页
【Unity实现Steam X-Ray壁纸】

【Unity实现Steam X-Ray壁纸】

作者: superowner | 来源:发表于2020-12-26 14:50 被阅读0次
    images (1).jpg

    思路请参考:Unity Shader - 遮罩效果https://zhuanlan.zhihu.com/p/138568019

    核心的部分就是遮罩取反操(1-mask_centre)作和两个遮罩图片合并(mask_centre+mask_border)

    完整代码jump->https://github.com/superowner/Steam-X-Ray-in-Unity

    如果想要移植到纯OpenGL,基本就是照猫画虎,改一下变量名字即可,Unity Shaderlab函数名都沿用的原本OpenGL的!传送门:https://colin1994.github.io/2017/11/11/OpenGLES-Lesson04/
    OpenGL版Demo
    https://pan.baidu.com/s/1MkaJla_H2dO9AJ3vc1IPig 提取码: f68j
    原理是一样的,只是变量名字不同,可以参考这个git的修改
    或者自己弄个批处理

    steam版教程制作,无代码
    https://steamcommunity.com/sharedfiles/filedetails/?id=2228595962

    ref:
    https://www.jianshu.com/p/edc530f3f36b
    https://zhuanlan.zhihu.com/p/138568019

    相关文章

      网友评论

          本文标题:【Unity实现Steam X-Ray壁纸】

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