I wanted to make pixelated shader effect - to change resolution dynamically. Here is the code:
IN.uv_MainTex*=_wight;
IN.uv_MainTex.x= floor( IN.uv_MainTex.x );
IN.uv_MainTex.y= floor( IN.uv_MainTex.y );
IN.uv_MainTex/=_wight;
rest is a regular cutout diffuse shader.
It works, if _wight is 8, it will be 8 pixels. But I get this artifacts. Some sort of pixel outline. And can’t understand where are those coming from. I used filter mode Point and Bilinear, with Point it is more noticible.