trying to figure out the indices and weights texture