This question already has an answer here:

I have an earth model, and I was wondering if there was a way to detect what parts of it are lit up by the sun. Basically, I need it is a value I can put into a mix shader to control what areas of the earth have lights on.


marked as duplicate by Duarte Farrajota Ramos May 5 at 22:49

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.