Add 3D matrix and Z rotation.