A ScreenSpaceRefraction for Unity URP (works in HDRP too)
If you are looking for a simpler and faster version, check this one Unity-URP-GlassShader
Refraction.mp4
Usage:
- Download the repo and import into your project.
- Create materials using RefractionGlassSimple or RefractionGlassComplex shaders. (Or use existing example materials)
Used Assets Credits:
- Glowing Crystals by ked182 on SketchFab
- Blue Diamond by Kugatsu Tsukai on SketchFab
References:
- Reflection and Refraction Vectors - Shader Graph Basics - Episode 24 by Ben Cloward
- This tutorial by AE Tuts