美文网首页unity插件推荐
[Unity 3d] SphereDissolve(球形溶解效果

[Unity 3d] SphereDissolve(球形溶解效果

作者: 雨落随风 | 来源:发表于2019-08-07 22:38 被阅读5次

上一文的姊妹篇来啦,球形溶解,不仅仅止于溶解。

GitHub 上的工程多如繁星,有些好的仓库,但凡不经意间错过了就很难找回,故稍作采撷,希望能帮助到有心人。

简介:

笔者今天推荐的仓库叫 SphereDissolve。 - 球形溶解Shader
这个仓库来同样自于上篇垂直溶解的作者,血统纯正的姊妹篇,哈哈。
这个球形溶解只是描述这个溶解的方向性是以球形行进的,这样一来,就能幻化出 N 多种奇妙应用场景。


怎么样,效果是不是很好,就像是凭空在石壁上开了一个传送门?
那么,反过来呢? 那是不是就像是你发射的技能把墙融化了?

功能:

This shader works in a similar way to a typical dissolve shader, albeit with two big differences:
不同于传统 Shader 这个溶解 Shader 有2大不同点:

  • It makes use of 3D noise instead of a texture, which means:
    它使用 Noise 代替贴图,这意味着:
    • We don't need to care about UVs and seams.
      我们不需要担贴图特有的 UV 和接缝问题
    • The effect is consistent among different objects. They are all affected equally. Quality is also scale-independent.
      在不同的游戏对象上,他们都受到同等影响。质量也与尺寸无关
    • It is a more computationally expensive method.
      更耗费算力
  • The dissolve effect follows a spherical shape, meaning it can be controlled by setting the center and radius of a virtual sphere. This opens up a lot of possibilities.
    由于这个溶解效果是按球形扩散,故而能通过修改球中心和半径值,创造更多意外的效果

使用:

  • 超专业的模块式 Inspector 界面。


    Parameters
  • 溶解的外边沿可以 浪起来 也很硬朗哈,如图


    通透的小房子
  • 探索第三维度的空间,这个脑洞还行吧~


  • 这个就更加不明觉厉了,难道这就是传说中的翻云覆雨手~


链接:

AdultLink/SphereDissolve: Customizable procedural spherical dissolve shader for Unity3D, for all your customizable procedural spherical dissolve needs!

结语:

  • 仓库作者展示了这个 Shader 的正向用法(开个口吐个东西),其实反向也很好用哟!(反向就是吐个东西对物体进行溶解破坏),还是那句话,工具仅仅只是工具~
  • Shader 支持使用 Amplify Shader Editor 编辑,欢迎贡献灵感!

本文集持续更新ing,喜欢记得点赞关注哦!

相关文章

网友评论

    本文标题:[Unity 3d] SphereDissolve(球形溶解效果

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