Readded depth calculation for postprocessing, finished removing old AA code