ApplyDottedWireMaterial() static private method

static private ApplyDottedWireMaterial ( ) : void
return void
        private static bool BeginLineDrawing(Matrix4x4 matrix, bool dottedLines, int mode)
        {
            if (Event.current.type != EventType.Repaint)
            {
                return(false);
            }

            Color col = color * lineTransparency;

            if (dottedLines)
            {
                HandleUtility.ApplyDottedWireMaterial(zTest);
            }
            else
            {
                HandleUtility.ApplyWireMaterial(zTest);
            }
            GL.PushMatrix();
            GL.MultMatrix(matrix);
            GL.Begin(mode);
            GL.Color(col);
            return(true);
        }
Beispiel #2
0
		internal static void ApplyDottedWireMaterial()
		{
			CompareFunction zTest = CompareFunction.Always;
			HandleUtility.ApplyDottedWireMaterial(zTest);
		}