Question by
jhs535853585358 · Sep 21, 2017 at 07:19 AM ·
2dgl
GL.QUADS and GL.LINE drawing over 2D Game Object
This is my script
Shader shader = Shader.Find("Hidden/Internal-Colored");
m_pLineMaterial = new Material(shader);
m_pLineMaterial.hideFlags = HideFlags.HideAndDontSave;
m_pLineMaterial.SetInt ("_SrcBlend", (int)UnityEngine.Rendering.BlendMode.SrcAlpha);
m_pLineMaterial.SetInt ("_DstBlend", (int)UnityEngine.Rendering.BlendMode.OneMinusSrcAlpha);
m_pLineMaterial.SetInt ("_Cull", (int)UnityEngine.Rendering.CullMode.Off);
m_pLineMaterial.SetInt ("_ZWrite", 0);
2D object shader is Sprite-Default (Had Alpha)
I want to drawing 2D object over GL.LINE and GL.QUAD.
How to do?
Comment