Finally got the matrix shader parameters to work