Quantcast
Channel: UGUI & TextMesh Pro
Viewing all articles
Browse latest Browse all 23263

Impossinle to set PerRendererData for custom UI shaders?

$
0
0
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?

Viewing all articles
Browse latest Browse all 23263

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>