- Home /
Question by
sabish-m · Jul 03, 2016 at 06:26 AM ·
linerendererorderdrawline
How to Change Draw Order for GL.LINES?
Grid was top of the Sprite how to change the draw order.
i am using this material.
Material lineMaterial;
void Start ()
{
lineMaterial = new Material( "Shader \"Lines/Colored Blended\" {" +
"SubShader { Tags { \"Queue\" = \"Transparent+\" \"IgnoreProjector\" = \"true+\" \"RenderType\"=\"Transparent\"}" +
"Pass {" +
"Tags { \"Queue\" = \"Transparent+\" \"RenderType\"=\"Transparent\"}" +
" BindChannels { Bind \"Color\",color }" +
" Blend SrcAlpha OneMinusSrcAlpha" +
" ZWrite Off Cull Off Fog { Mode Off }" +
"} } }");
lineMaterial.hideFlags = HideFlags.HideAndDontSave;
lineMaterial.shader.hideFlags = HideFlags.HideAndDontSave;
}
and draw the grid using GL.LINES.
prob1.png
(61.0 kB)
Comment
Your answer
Follow this Question
Related Questions
Drawing 2 lines in same time 0 Answers
Draw a line with collision 2 Answers
Drawing lines from mouse position 2 Answers
Draw line in runtime 1 Answer
How should I do to draw lines like this? 0 Answers