- Home /
how to solve shader/texture problem: putting white icons on colored planes
hi there!
I want to generate some colored planes with some white icons on it. my approach was that I have a texture-map where the white icon lies on a black background. now in the material of the plane I want a shader to use the color input to colorize the black background of the texture while the white icon is still white.
is this possible? thanx!
Answer by elbon96 · Oct 29, 2010 at 01:38 PM
No, you'll have to use two separate textures. The color value of a material influences the whole texture, not specific parts of it.
My approach would to be to create a plane for the background, and separate planes for the buttons.
this would be lots of additional planes. i develop for iPhone so I need to count planes... but thank you! there should be another way, maybe using two meterials over the other? I have to dive into shaders, hm...?