What am I?

By Moon or by Sun I shall be found. Yet I am undone if there's no light around.