More infra for shadowmapping.