0
\$\begingroup\$

Let's say I have a cube with each face having a different colour. I want them all to look like brick walls, but I don't want to have to recreate the same brick texture for every colour.

Is it possible to create a greyscale semi-transparent brick texture that I can overlay overtop of the polygon colour?

This scene will eventually be used in Unity, but I also have access to 3DS Max and Blender. So, whatever works.

\$\endgroup\$
  • \$\begingroup\$ Have you tried setting the renderer.material.color of the object to the color you want? \$\endgroup\$ – TheWanderer Jul 23 '14 at 20:52
  • \$\begingroup\$ I'm just starting out with Unity, so I haven't gotten into scripting yet. Is there a GUI way to do it? \$\endgroup\$ – jairbow Jul 23 '14 at 21:05
  • \$\begingroup\$ sure, in the scene simply click on the GameObject to which you have assigned the desired material, then click on main color to edit color that will be combined with the texture. You will find more information here \$\endgroup\$ – TheWanderer Jul 23 '14 at 21:17
  • \$\begingroup\$ Wow. So simple! Thank you! Copy that info into an answer, so that I can select it. \$\endgroup\$ – jairbow Jul 23 '14 at 21:28
1
\$\begingroup\$

You can combine a material's diffuse color with a diffuse map in two ways:

  1. In code, by setting the GameObject's `renderer.material.color' to a different one
  2. Through the GUI by selecting the GameObject and in the inspector choosing the desired color in the main color field of the assigned material component

More information on Unity's materials can be found here

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.