adjust perspective matrix

adjust calculation of perspective projection matrix