To highlight a country ... use another overlay texture, clear it to black and apply this over the existing planet texture using additive blend. This will be used to brighten an area of the texture.
When a country is detected ... read all the pixels from the colour texture of this country's colour and plot a pixel of colour 128,128,128 ( or suchlike ) onto the overlay texture. Remember and clear it when another country is selected.
It should be fast enough.
For highlighting .. do a similar exercise but only plot pixels which border this countries colour.
Make sense?
Stevie
When a country is detected ... read all the pixels from the colour texture of this country's colour and plot a pixel of colour 128,128,128 ( or suchlike ) onto the overlay texture. Remember and clear it when another country is selected.
It should be fast enough.
For highlighting .. do a similar exercise but only plot pixels which border this countries colour.
Make sense?
Stevie