mob-sakai / UIEffect

UIEffect is an effect component for uGUI element in Unity. Let's decorate your UI with effects!
https://github.com/mob-sakai/UIEffect
MIT License
5.62k stars 773 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.