float sizeoftexel=1.0/8.0;
float3 wpos=round(IN.wordlPos/sizeoftexel)*sizeoftexel;

i used that equation in unity to "pixelize"(scale) pixels, sure someone can help you ..


Compulsive compiler