added kernel functionality to calculate position from depth