I'm writing a basic planet viewer OpenGL Perl application, just for fun.
I have the basics working, with the glorious planet, implemented through a gluSphere()
, rotating with the classic earth texture map applied.
Now, what if I want to apply a second texture map through OpenGL (say, the "earth clouds")?
Of course, I can mix the two texture maps myself in PhotoShop or some other graphic application, but is there a way through OpenGL API?
I tried loading the two textures and generating the mipmaps but the planet is shown with only the first texture applied, not the second.