the matrix multiplication has to be done per vertex in the shader and not in the material event function.