I'm trying to render a 3-d globe model procedurally using only base maps (a colour map, height map, country map, etc), and I'd really like to be able to make a specific spot of my colour map a different colour depending on what country is there on the country map. However, to do this, I need to either apply a translucent version of my country map on top of my colour map, or I need to read from one texture and then manually edit the colour of the pixels of the other. Either way, I need to be able to edit the texture manually, which I can't figure out how to do.
I heard somewhere about a setPixel() function, but I can't figure out how it works as running
Code: Select all
myTexture->setPixel(x, y, colour);
throws an error that ITexture doesn't have a member SetPixel.
Any help would be greatly appreciated!