Add ability to write() matrices into uniforms