(4.27) how to pixelate a material

just variations of this came up but the problem is that theyre using texture sample whereas im not


I tried this a but it just glitched the material