- Home /
How do I create a material for a cube with two colors?,How do I create a material for a rectangular prism with two colors
My goal is to create simple two color grass, with each cube being brown for the bottom 3/4 and green for the top 1/4. How would I achieve this?
(Please use simple terms I am a beginner),
Answer by Buckslice · Nov 29, 2017 at 03:47 AM
You could create two materials, one green and one brown. Then create two cubes and assign one the green material and one the brown. Then change the greens y scale to 0.25 and the browns y scale to 0.75 then stack the green on your brown and there you go! You would probably want to child both of them under another empty gameobject and only have the collider on that and the two children will just have mesh renderers/filters. Good luck!
Your answer
Follow this Question
Related Questions
Problem with material color change. 2 Answers
Material.SetColor and Material.color are not working properly 0 Answers
Lightweight shader doesn't properly apply to blender imported GameObjects 1 Answer
Using different UV for multiple model copies 2 Answers
Is there an any way to use batching with UV tiling? 1 Answer