andydbc/unity-frosted-glass

:snowflake: Test of a frosted glass material in Unity.

912

stars

8

commits

C#

primary language

Jun 10, 2024

updated

effect
material
shader
shaders
unity
unity-3d
unity3d

README

unity-frosted-glass License Donate

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.

screenshot

Limitations

  • Editor view don't render the effect.
  • Tested with Unity version 2017.1.1f1

Further Reading

License

MIT, see LICENSE for details.

Contributors

omgitsraven

6 commits

DashW

2 commits

andydbc/unity-frosted-glass

:snowflake: Test of a frosted glass material in Unity.

912

stars

8

commits

C#

primary language

Jun 10, 2024

updated

effect
material
shader
shaders
unity
unity-3d
unity3d

README

unity-frosted-glass License Donate

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.

screenshot

Limitations

  • Editor view don't render the effect.
  • Tested with Unity version 2017.1.1f1

Further Reading

License

MIT, see LICENSE for details.

Contributors

omgitsraven

6 commits

DashW

2 commits

Languages

C#

55.5%

HLSL

29.1%

ShaderLab

15.4%