Finally replaced texture lookup with a matrix