Moved shadow mapping code from composition stage back to directional light stage. Also fixed some logic bugs in renderer update loop.