blending and light

how can i make one texture ‘disappear’ when it’s exposed to light?
i’m trying to make earth (2 spheres) with 2 textures, one for day side and one for night side…

Have a look at code of the Earth demo of the GLScene scenegraph :

http://sourceforge.net/project/showfiles.php?group_id=29749&package_id=67802&release_id=170007

It is a very nice one, featuring the effect you describe.

thanks, this is it…