works with near far and show debug