pass M and V to shaders