- Home /
Change colour of mobile VertexLit or Deffuse
Is it possible to change the colour of a Mobile VertexLit or Mobile Deffuse shader like below ?
renderer.material.color = Color.red;
Comment
Best Answer
Answer by ScroodgeM · Jul 20, 2012 at 10:53 AM
to change a color of material your shader must support this color as a parameter. all parameters that shader supports you can see in material properties when you choose a shader. if there's no color property, then answer no - you can not change a color such way. add color property and modify calculation inside shader source or choose another shader that supports color change.
Your answer
![](https://koobas.hobune.stream/wayback/20220613074212im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Replacing VertexLit shader? 0 Answers
Mobile Shaders 0 Answers
Surface Shader not working when using Vertex Lit render settings? 2 Answers
Lightmap options in a custom shader 0 Answers
diffuse curve world shader 1 Answer