Builtin Refractive Shader

Builtin Pipeline Only! Not compatible with URP!


URP RefractiveShader asset -> https://assetstore.unity.com/packages/slug/315202


This shader emulates light refraction as it passes through media with different refractive indices.


Effect is purely artistic/cosmetic, the method of distortion is not based on physical model of refraction.


Tested on PC(win, linux) and Android builds


Features:

  • Built on Unity's Standard Surface shader
  • Chromatic Aberration (CA)
  • Normal Map affects Distortion
  • Smoothness < 1 Blurs refracted scene
  • Other refractive materials visible from behind
  • Tunable blurring sample count
  • Supports separate Metallic Smoothness textures
  • Supports combined Metallic Smoothness (R,A) texture