I have try to make shader for performance benefit by calculatin tiled material in the vertex shader. but seems that there some trouble with Frac when calculation is placed in the vertex shader.
How to correctly calculate Frac result for CustomUV?
Take a list of paper, draw a triangle in 2d coordinate system. Run your math on its vertices coordinates. Try to interpolate result between two vertices and you will see why it will not work.