There was an incorrect conversion for local clip planes although the coordinates used are in world positions.