美文网首页unity插件推荐
[Unity 3d] AtmosphereScatter(大气散

[Unity 3d] AtmosphereScatter(大气散

作者: 雨落随风 | 来源:发表于2019-06-23 23:03 被阅读2次

    如何在Unity 3d 模拟太阳穿透大气的散射效果,看这儿,如果你不知道我在说什么更应该点进来瞧瞧,嘿嘿!

    GitHub 上的工程多如繁星,有些好的仓库,但凡不经意间错过了就很难找回,故稍作采撷,希望能帮助到有心人。
    本文集以一个小的功能点为单位行文,也便于拾取罢!

    简介:

    笔者今天推荐的仓库叫 AtmosphereScatter。- 大气散射
    这是Unity3D中大气散射效果的实现。效果是基于物理的。

    功能:

    • Physically based calculation
      基于物理公式运算结果
    • Support multi-scattering
      支持多散射
    • Runtime parameter update with little performance loss
      在性能几乎不丢失的情况下支持运行时动态修改参数

    使用:

    1. AtmosphereScattering 管理器脚本挂载在你的场景中,( 如果需不销毁加载,请自行使用 DontDestroyOnLoad API ).
    2. 它自动完成所有的预计算工作, 并将 RenderSettings.Skybox 设置成 散射材质球.
    3. In order to add aerial perspective, add AerialPerspective script to your camera. - 未发现存在此类脚本,笔者注

    Tips : 反正有3个demo,直接看Demo就行了。

    演示:

    AtmosphericScattering

    Tips:

    • 天空泛起了鱼肚白,嗯,感觉就是这个味道。
    • 瞧这个太阳,多魔性~

    链接:

    yangrc1234/AtmosphereScatter: Precomputed Physically Based Atmosphere Scattering for Unity3D

    结语:

    • 如果可以在自己的工程中加入这样的效果,当现实照进虚拟,那又会是有多棒?
    • 如果有兴趣深入到实现的,超鼓励哟~

    扩展阅读:

    下面仓库是首发?
    SlightlyMad/AtmosphericScattering: Atmospheric Scattering for Unity

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

    相关文章

      网友评论

        本文标题:[Unity 3d] AtmosphereScatter(大气散

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