I would like to use a color multiplier in my shader to highlight (glow) a sprite. I have my own shader that works fine, but I don’t know how can I add an extra parameter to the Sprite Renderer that I can pass to the shader later?
I am interested in any alternative solution a well which I can use to render a sprite with custom shader that has extra properties
//Properties
_EmissionLM (“Emission (Lightmapper)”, Float) = 0
[Toggle] _DynamicEmissionLM (“Dynamic Emission (Lightmapper)”, Int) = 0
//Output
o.Emission = c.rgb * tex2D(_Illum, IN.uv_Illum).a;
something like that maybe?
Thanks for your answer.
But these properties will appear on the Material panel so they will be used on the material level and all sprites will be rendered with the same settings. I need to set (animate) this value per sprite. I would need a new SpriteRenderer property just like the Color property of the SpriteRenderer.