一个非常懂得配色的 磨砂/雾化玻璃效果,nice!
GitHub 上的工程多如繁星,有些好的仓库,但凡不经意间错过了就很难找回,故稍作采撷,希望能帮助到有心人。
简介:
笔者今天推荐的仓库叫 unity-frosted-glass。 - 雾化玻璃
This code reproduce a frosted glass effect in Unity (as seen in DOOM 2k16). It use a CommandBuffer attached to the main camera to render the scene in global rendertextures. A grayscale mask is then used to sample between these rendertextures in order to apply the desired blur.
这段代码在Unity中重现了磨砂玻璃效果(如《毁灭战士2》中所示)。它使用一个附加到主摄像头的CommandBuffer来对场景的全局渲染纹理再加工。然后使用灰度蒙版对这些渲染纹理进行采样,以便应用所需的模糊效果。(基于有道翻译,仅供参考)
功能:
- 提供一个玻璃被水蒸气覆满的透视效果,或者说磨砂效果的解决方案。
演示:
Tips:
- SceneView 没效果
- 测试用版本 Unity 2017.1.1f1
链接:
andydbc/unity-frosted-glass: Test of a frosted glass material in Unity.
结语:
这雾化/磨砂的玻璃效果效果很心动,就连cube 和 panel 配色也恰到好处 ,故推荐也~
本文集持续更新ing,喜欢记得点赞关注哦!