Hi everyone! I have some problem with my two-side wireframe shader!!!
And this is what I want:
[100133-擷取2.jpg|100133]
But this shader is using cutout and i dont want to use it because of the “Jagged Edges”
So i try to modify it to use depth test, and get this:
[100135-未命名-1.jpg|100135]
The backside of the mesh close to the camera, is been culling by the frontside which is behind the backside.
here is my shader:
SubShader
{
Tags { "RenderType"="Transparent" "Queue"="Transparent" }
Blend SrcAlpha OneMinusSrcAlpha
ZWrite Off
Pass
{
Cull Front
LOD 200
CGPROGRAM
#pragma target 5.0
#pragma vertex vert
#pragma fragment frag
#pragma geometry geom
ENDCG
}
Pass
{
Cull Back
LOD 200
CGPROGRAM
#pragma target 5.0
#pragma vertex vert
#pragma fragment frag
#pragma geometry geom
ENDCG
}
}
Does anyone know how to fix this?? thanks~~~