Skip to main content

Glass Shaders

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

Simple glass shader2

Features:

  • Distortion (tiled)
  • Tint color
  • Diffuse texture
  • Metalic and smoothness
  • Normal strength
  • Reflection (baked cubemap)
  • Distort strength

Download from GitHub:

Github

Complex Glass Shader

Crystal

Features:

  • IOR
  • Chromatic aberrated refraction
  • Color tint
  • Emission

Download from GitHub:

Github