/UnityURPRefractTransparent

Custom render feature for Unity URP to have transparent objects show behind refraction properly

Primary LanguageShaderLabMIT LicenseMIT

VIDEO TUTORIAL AND EXPLAINATION: https://www.youtube.com/watch?v=tyyn6NhH-MQ Video

WHAT

gif

Custom render feature for URP that allows transparent objects to show up behind glass (with refraction)!

WHY

By default, unity uses the OpaqueTexture/SceneColor when doing refraction. This texture is BEFORE transparent objects have been rendered, and because of this, transparent objects do no show up through glass. This is dumb. And while working on some water/waterfall things, I realized I rely on particles a lot, and don't want them disappearing when looking through waterfalls and stuff.

WHO

MIT license, do whatever you want.

Questions, tweet me at @DMeville