I have big array of values/samples, and i need to draw wave chart in uGUI for it. So i have points with same interval at the coordinate x and i should connect them. I tried to draw it by few methods, but i always have problems when i need to draw more than 1 point pixel or per line thickness.
The problem arises because the standard solutions look at the nearest points by coordinates, while ignoring the points inside the segment, so it creates some unexpected artifacts, like cut of line. I tried line renderer it works just with low line thickness, and a little bad for uGUI. I tried Xiaoling Wu algo for Texture2D.SetPixel, but it turns into shreds when the distance between points on x is very small. Somehow it just so happens that GL.Lines draws lines good, but doesn't have line thickness and works bad with uGUI(i need always write it to render texture). So now i trying Shader Lab, and standart doublesmoothstep algo works bad too.
So is there some solution for fragment shader or i need try something anothing to solve problem?