- Home /
Combine material's main texture and main color
I am in the process of combining textures into a single map to lower draw calls, but I am realizing that I have set the main color for all my textures that I want to combine differently. How do I combine a material's main texture and main color into a single draw call? Is there a way to do it with an external program like photoshop? Thanks a lot.
Answer by ThermalFusion · Sep 09, 2012 at 10:07 PM
If you are using the builtin shaders, you can mimic the effect of the main color in photoshop easily. The result color of the texture is Texture*2*MainColor. So if you multiply the texture with the maincolor in photoshop, and then add a copy off the result with that, you get the actual color. You would then have to set the material main color to 128 128 128 gray.
I am kind of newbie to photoshop. How would I go around multiplying the texture with main color? And then how would I add it? Thanks.
--If you are wondering how to do this, all you have to do is go into photoshop, make a layer that is the color of the main layer and then just select multiply ins$$anonymous$$d of normal in the layers menu for this new layer.
For most of the builtin shaders the result is doubled. To get the same result, you would have to add a multiply layer of the main color over the main texture layer, merge all together into one layer, make a copy of the new layer, and add that to the previous layer, that should yield pretty much the same result.