Nearest texture search implemented.