Adding some infrastructure for shadowmapping.