Open Inventor - Texture Issue

I need help in using two textures to accurately display night/day of earth. I have the two textures and am using an SoSphere. What I can’t get done is determine how to clip each texture based on TOD and display both to the same SoSphere. If anyone could drop me an email that would be great. Thanks!