Make the commented shadow code use new renderpass functions