The simplest way would be to put a dark texture on top of your scene (with the highest Z), make it visible and with opacity 0 at first, and gradually increase its opacity in _process
.
Then change the scene, and do the same the other way around (full opacity -> opacity 0).