Skip to content

A Unity built-in shader for a plausible rain-on-glass effect. Has high-end and mobile variants.

License

Notifications You must be signed in to change notification settings

toadstorm/RainyGlassShader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RainyGlassShader

rain sample

A Unity built-in shader for a plausible rain-on-glass effect. Has high-end and mobile variants. As seen in "The Conservatory" on VRChat.

This shader was constructed using Amplify Shader Editor. It uses a bit of math to animate the two included textures. The shader is fully parameterized so it can create rainy looks of varying intensities.

The main shader uses a grabpass for the fake refraction effect. On Android, please use the mobile shader that doesn't use a grabpass. It's highly recommended that you edit this shader or any other grabpass shaders in your scene to ensure that the grabpasses are named identically wherever possible to avoid performance loss.

For information on how this shader was constructed, see this article: https://www.toadstorm.com/blog/?p=742

About

A Unity built-in shader for a plausible rain-on-glass effect. Has high-end and mobile variants.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published