Added basic matrix support to renderer3D