美文网首页unityUnity_GitHub
[Unity 3d] unity-deformablesnow

[Unity 3d] unity-deformablesnow

作者: 雨落随风 | 来源:发表于2019-07-19 23:17 被阅读10次

一个简单的雪地形变 实现

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

简介:

笔者今天推荐的仓库叫 unity-deformablesnow
A straightforward technique for rendering deformable snow in limited areas based off of http://www.gdcvault.com/play/1020177/Deformable-Snow-Rendering-in-Batman
一个基于GDC中《蝙蝠侠中的可形变雪地渲染》一文的在有限区域内渲染可变形雪的简单技术。

image.png

功能:

形变雪地

原理:

  1. 具有短剪裁平面的正交相机捕获深度而不清除其缓冲区。
  2. 雪的着色器读取深度纹理并在其细分曲面中创建印记。
  3. 通过使用不断使印记缓冲区变暗的屏幕效果来刷新雪。

Tips: 需要 DX11及以上版本,需要最新版本的图形需API

演示:

链接:

thnewlands/unity-deformablesnow: Repository for online PIGSquad workshop on deformable snow in Unity.

结语:

关键字:shader编程,屏幕后期处理 ,感兴趣的可以看看。

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

相关文章

网友评论

    本文标题:[Unity 3d] unity-deformablesnow

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