Home Glass Shaders - Simple and Complex
Post
Cancel

Glass Shaders - Simple and Complex

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 strenght
  • Reflection (baked cubemap)
  • Distort strenght

Download from GitHub:

Github

Complex Glass Shader

Crystal

Features:

  • IOR
  • Chromatic aberrated refraction
  • Color tint
  • Emission

Download from GitHub:

Github

This post is licensed under CC BY 4.0 by the author.