fixed bug in frustrum direction, added viewing offset mode