Added an option to OpenSeeVRMDriver to turn off gaze tracking

This commit is contained in:
Emiliana 2020-07-06 13:17:26 +02:00
parent 4300bcf9a6
commit cac412b2af

View file

@ -54,6 +54,8 @@ public class OpenSeeVRMDriver : MonoBehaviour {
[Tooltip("This is the sensitivity of the eyebrow tracking, with 0 meaning no eyebrow movement.")]
[Range(0, 2)]
public float eyebrowSensitivity = 1.0f;
[Tooltip("If enabled, the eye will be animated according to camera based gaze tracking.")]
public bool trackGaze = true;
[Tooltip("This is the gaze smoothing factor, with 0 being no smoothing and 1 being a fixed gaze.")]
[Range(0, 1)]
public float gazeSmoothing = 0.6f;
@ -1382,7 +1384,8 @@ public class OpenSeeVRMDriver : MonoBehaviour {
}
FindFaceMesh();
UpdateExpression();
UpdateGaze();
if (trackGaze)
UpdateGaze();
BlinkEyes();
ReadAudio();
if (lipSync) {