- Home /
What is the best way to change a texture shade?
I have a singular base texture for blades of grass, and want to shade them slightly different degrees of green without switching out the texture. In order to batch the grass I'm using a Mobile/Diffuse. Is there any way to shade each unit differently?
Answer by schaddemm · Feb 07, 2013 at 05:28 AM
Def possible, as it's done in the standard terrain. As I understood it that's what MaterialPropertyBlocks are for, haven't gotten them to work yet though.
"MaterialPropertyBlock is used by Graphics.DrawMesh. Use it in situations where you want to draw multiple objects with the same material, but slightly different properties. For example, if you want to slightly change the color of each mesh drawn."
Hmm, has anyone actually used that? I'm curious about it now. The grass looks okay as it is but needs a bit more variation to look a little less cartoony. I'm not using the standard terrain - I produced my own setup and slowly adding standard features.
Your answer
Follow this Question
Related Questions
How can I edit Material Textures without creating a new Shader?,How to edit Material Texture 1 Answer
Graphics Performance Question 2 Answers
Complicated shader problem 0 Answers
PS1 Shaders - Reducing Distortion 1 Answer
Best method for implementing alternative view modes? (like Cities: Skylines "Info View") 0 Answers