本人不太懂shader 求大神们帮帮忙
m_Material = new Material(
"Shader \"Lines/Colored Blended\" {\n" +
"Properties\n" +
"{\n" +
"_Color( \"Main Color\", Color ) = (1,1,1,1)\n" +
"_MainTex( \"Texture\", 2D ) = \"white\" {}\n" +
"}\n" +
"SubShader\n" +
"{\n" +
"Pass { " +
"Blend Off AlphaTest Greater 0.5 ZWrite Off ZTest Less Cull Off Fog { Mode Off } Lighting Off\n" +
"SetTexture [_MainTex]\n" +
"{\n" +
"constantColor [_Color]\n" +
"combine texture * constant, texture * constant\n" +
"}\n" +
"} }\n" +
"}"
);
m_Material = new Material(
"Shader \"Lines/Colored Blended\" {\n" +
"Properties\n" +
"{\n" +
"_Color( \"Main Color\", Color ) = (1,1,1,1)\n" +
"_MainTex( \"Texture\", 2D ) = \"white\" {}\n" +
"}\n" +
"SubShader\n" +
"{\n" +
"Pass { " +
"Blend Off AlphaTest Greater 0.5 ZWrite Off ZTest Less Cull Off Fog { Mode Off } Lighting Off\n" +
"SetTexture [_MainTex]\n" +
"{\n" +
"constantColor [_Color]\n" +
"combine texture * constant, texture * constant\n" +
"}\n" +
"} }\n" +
"}"
);


