I tried every wireframe shader on the asset store and none work on my android phone. It looks fine on PC but on android its just pink… Is there a way to render wireframe shaders on mobile or should I give up on this?
these wireframe shaders use a geometry shader ,which is not supported under openglES 3.2.
you can add a uv2 channel to mesh ,reset uv layout so that every triangle’s three points uv are:
(0,0) ,(1,0) ,(0,1) ,then in frag shader use float inEdge = uv.x <= _lineWidth || uv.y <= _lineWidth || (uv.x + uv.y) >= 1-_lineWidth;
to check where a fragment is in edge