Improved way to calculate dynamic near/far clip planes