Edit: Damn, title typo...
Hey guys. So I am creating a sheen effect to my UI buttons.
The buttons have a graphical component (UI.Image). I add my component to this gameobject (UISheen).
My component implements IMaterialModifier. This lets me create a new material that uses my Sheen shader. The CanvasRenderer grabs my material and uses that material to render the UI.Image component.
So far so good. My Sheen shader is a copy of the default UI shader, except it applies a white sheen effect...
Impossinle to set PerRendererData for custom UI shaders?
Hey guys. So I am creating a sheen effect to my UI buttons.
The buttons have a graphical component (UI.Image). I add my component to this gameobject (UISheen).
My component implements IMaterialModifier. This lets me create a new material that uses my Sheen shader. The CanvasRenderer grabs my material and uses that material to render the UI.Image component.
So far so good. My Sheen shader is a copy of the default UI shader, except it applies a white sheen effect...
Impossinle to set PerRendererData for custom UI shaders?