コード例 #1
0
ファイル: Drawer.cs プロジェクト: MitchKeenan0/Kardashev
        private void OnRenderObject()
        {
            GLE.BeginLines();
            {
                GL.Color(ColorE.fuchsia);
                Quaternion rotation = transform.rotation;
                Vector3    position = transform.position + Vector3.up;

                GLE.DrawWireHemisphere(position, rotation, radius);
                GLE.DrawWireCone(position, rotation, radius, coneAngle, coneLength);
            }
            GL.End();
        }
コード例 #2
0
        private void OnRenderObject()
        {
            if (skeleton == null)
            {
                return;
            }

            GLE.BeginLines();
            {
                DrawSkeleton(skeleton);
            }
            GL.End();
        }