Added near/far threshold controls.