示例#1
0
文件: GLDraw.cs 项目: wjk17/WSA
        void OnRenderObject()
        {
            var cam = Camera.main;

            vp = cam.WorldToViewportPoint(transform.position);

            //GL.LoadOrtho();
            //GLUI._DrawLineDirect(v[0], v[1], Color.red, Color.black);
            mat.SetPass(0);
            GLUI._DrawQuadDirect_CusMat(c, direct);

            //vws = new Vector3[v.Length];
            //for (int j = 0; j < vws.Length; j++)
            //{
            //    vws[j] = cam.ViewportToWorldPoint(v[j].SetZ(zOffset));
            //}
            //vwsArrange = vws.Copy().Arrange(idxs);
            //GLUI._DrawQuadDirect(Color.red, direct);
        }