Moon Phases

I’m having a lot of trouble in incorporating moon phases in my daytime system :cry:

I can’t shade half of the moon, and I don’t really want to use a directional light for it, as I’m using an unlit material.

Any help would be really appreciated.

Here could be a hint, UE4 Planet Shader - YouTube
It’s a planet shader I made work with this system: null - YouTube