omid3098 / Unity-URP-GlassShader

A beautiful glass shader with distortion for Unity URP

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UnityGlassShader

If you are looking for a more advanced glass shader, check This one!

image

Update: Supports diffuse texture

Thanks to @HiRoS-neko image

Demo Video:

movie_001.mp4

Materal parameters:

glass.mp4

Installation:

  • Make sure Opaque texture is checked in your Universal render pipeline asset.
  • Clone this repo and put it into your project.
  • Use glass material or create your own material from "GlassShader" shadergraph file.
  • Assign material to your object

Features:

  • Tint color
  • Metalic and smoothness
  • Normal strenght
  • Distortion tiling
  • Reflection strenght
  • Distort strenght

This shader does not:

  • No refraction and only distorts behind the glass.
  • No multiple glass on top of each other. (whould be nice if you know how to implement)

About

A beautiful glass shader with distortion for Unity URP

License:MIT License