temp. 4x4 matrix and perspective projection implementation