Fix kernel dimensions and wrong depth gradients
Implementing updated global integration, extending Frankot-Chelappa