Esempio n. 1
0
 public unsafe void UpdateFace()
 {
     //IL_0030: Unknown result type (might be due to invalid IL or missing references)
     faceMorph.ClearBlendValues();
     foreach (string item in FacesToCheck)
     {
         float z = (VMDFaceBlendValues[item].localPosition).z;
         if (z > 0f)
         {
             float[] array = VMDFaceName[item];
             for (int i = 0; i < faceMorph.MorphCount; i++)
             {
                 float num = array[i] * z;
                 faceMorph.SetBlendValues(i, faceMorph.GetBlendValues(i) + num);
                 if (faceMorph.GetBlendValues(i) > 1f)
                 {
                     faceMorph.SetBlendValues(i, 1f);
                 }
             }
         }
     }
     faceMorph.FixBlendValues();
 }
Esempio n. 2
0
 public void Apply()
 {
     face.ClearBlendValues();
     face.MulBlendValues(faceName, 1f);
     face.FixBlendValues();
 }