I'm trying to simulate an image taken by a telescope of objects close to the moon. So far, I have managed to have the moon correctly illuminated, and using the lightpath node, it emits light without blowing the textures. enter image description here

The problem now is the dark side of the moon is not very dark. To solve this problem and make the scene more realistic, I would like only the portion of the moon illuminated to emit light. Is there any way to basically create a mask of the illuminated portion to use it as a factor into the mix shader for the light emitted?



Browse other questions tagged .