fix generation (and debug rendering) of shadow-depth buffer