SceneCapture2D does not capture depth.

Im trying to render out a color image with a depth greyscale. It doesnt seem to work with scenecapture2d… any ideas?