Changed TmatInv to Tmat for transforming intersect coordinates to world space