extend Mobile-Bumped and Mobile-BumpedSpec.shader with color
I would like to change the color of a material during runtime. So for example, I got a white leather material and on a button click, the material should be e.g. red leather. As I look for similar stuff inside the forum here, I've seen properties like "_Color" "_TintColor" and "_ColorTint". Now I absolutely don't know which one to use and how to extend the shaders. Could someone extend it please with a small explanation?
Mobile-Bumped.shader: http://pastebin.com/dwtGztGA
Mobile-BumpedSpec.shader: http://pastebin.com/vp12pgnZ
Answer by LE0NIDAS · Dec 14, 2015 at 03:26 PM
okay solved it with the final color modifier, described in the "Final Color Modifier" section here: http://docs.unity3d.com/Manual/SL-SurfaceShaderExamples.html
Your answer
![](https://koobas.hobune.stream/wayback/20220612052318im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Converted ShaderToy shader showing up black 1 Answer
Add fog to vertex shader 0 Answers
_Time in Image Effects 0 Answers
Trying to make a custom cutout shader 0 Answers
_WorldSpacePosLight0 suddenly changes when change camera position or direction 0 Answers