Awesome
Unity-URP-ScreenSpaceRefraction
A ScreenSpaceRefraction for Unity URP (works in HDRP too)
<img width="668" alt="image" src="https://user-images.githubusercontent.com/6388730/236700236-714a0b3a-d7dc-4fa0-9370-7aa073edbd14.png">If you are looking for a simpler and faster version, check this one Unity-URP-GlassShader
https://user-images.githubusercontent.com/6388730/172062749-937321dc-e1e0-414b-8aac-a71313aa0e0d.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