Skip to content

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

License

Notifications You must be signed in to change notification settings

DMeville/RefractedTransparentRenderPass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages