Refractive Shader


Standard Pipeline Only! Not compatible with URP!

This shader emulates light refraction as it passes through media wit ...


by Kalev Mölder


★★★★ star rating
Price History +

Standard Pipeline Only! Not compatible with URP!

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

However the effect is purely artistic/cosmetic as the method of distortion is not based on physical model of refraction.

Update 1.3 - Added new Lit and Unlit shader with:
- Masking parameters for refraction
- Alpha blending
- Sample count based quality tuning
- More Physically correct looking distortion


Update 1.2
- Added unlit distortion shader
- Added a simple particle distortion shader

Update 1.1
- Depth masking (objects in front do not get distorted contours)
- Color alpha controls transparency
- Added Factors to fade Texture maps
- Added Emissive properties

Features:
- Built on Unity's Standard Surface shader
- Chromatic Abbreviation (CA)
- Normal Map affects Distortion
- Smoothness < 1 Blurs refracted scene

Includes:
- 3 Shaders with different GPU footprints
- Demo Scene with some textures