update sample to debug distance field