Beispiel #1
0
        public override Pose Output()
        {
            Fov.Calculate();
            Lock.Calculate();
            CP.Calculate();

            Pose pose = Pose.Default;

            if (modifier != null)
            {
                pose = modifier.Prev.value;
            }

            if (!Fov.value.isNull)
            {
                pose.fov = Fov.value.value_f;
            }

            if (!Lock.value.isNull)
            {
                pose.lockCursor = Lock.value.value_b;
            }

            if (!CP.value.isNull)
            {
                pose.cursorPos = new Vector2(CP.value.value_v.x, CP.value.value_v.y);
            }

            return(pose);
        }
Beispiel #2
0
        public override Pose Output()
        {
            Fov.Calculate();
            Near.Calculate();

            Pose pose = Pose.Default;

            if (modifier != null)
            {
                pose = modifier.Prev.value;
            }

            if (!Fov.value.isNull)
            {
                pose.fov = Fov.value.value_f;
            }

            if (!Near.value.isNull)
            {
                pose.nearClip = Near.value.value_f;
            }

            return(pose);
        }