mob-sakai / UIEffect

UIEffect is an open-source package that allows you to intuitively apply rich UI effects directly from the Inspector or via code. Combine various filters, such as grayscale, blur, and dissolve, to decorate your UI with a unique visual style!
https://mob-sakai.github.io/UIEffect/
MIT License
5.81k stars 797 forks source link

SpriteDiffuse shader lost when applying UI-Effect #200

Open flarive opened 4 years ago

flarive commented 4 years ago

Hi !

First at all, UI-Effect is a really great plugin for Unity !

I have UI elements (images) that needs to affected by lights (using SpriteDefaultDiffuse shader). When I apply UI-Effect, the Image component material is replaced with UI-Effect.mat (or variants such as UI-Effect-BlurDetail...) but UI-Effect.mat doesn't seem to handle diffuse (closer to SpriteDefault than SpriteDefaultDiffuse).

Could it be possible to patch UI-Effect main shader to make it diffuse ?

Thanks a lot

Great job, really !

Frederic France

mob-sakai commented 4 years ago

Hi @flarive

Thank you for your feature request! I'll check it later.