Why?
Because Unity is not so good with default glass materials and shaders. I have made two glass shaders. one is a simple glass shader without refraction, suitable for mobile games or simple games. The other one is a more complex shader with refraction, suitable for more complex scenarios.
How?
Using ShaderGraph, I have created two shaders.
Simple Glass Shader
Features:
- Distortion (tiled)
- Tint color
- Diffuse texture
- Metalic and smoothness
- Normal strenght
- Reflection (baked cubemap)
- Distort strenght
Download from GitHub:
Complex Glass Shader
Features:
- IOR
- Chromatic aberrated refraction
- Color tint
- Emission