sebastianhein / urp_kawase_blur

URP renderfeature test project
421 stars 76 forks source link

Make blur fadeable? #2

Open Haapavuo opened 3 years ago

Haapavuo commented 3 years ago

The blur is now constant. I would like to fade in & out the blur effect. How could I achieve this? Thanks!

gandarufu commented 3 years ago

You can edit the shader graph. Add a vector1 for intensity and use that to drive a Lerp node. Plug the output of the texture sample into A and a scene color node into B. The Lerp then goes into the color of the output. For this to work you need to check "Opaque Texture" in your URP settings. It simply lerps between what's on screen and the blurred version. https://imgur.com/WAJSmSX