BlendShapeFrame.cs 809 B

12345678910111213141516171819202122232425262728
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. namespace LunarCatsStudio.SuperCombiner
  5. {
  6. /// <summary>
  7. /// Class describing data for a unique blendshape
  8. /// </summary>
  9. public class BlendShapeFrame
  10. {
  11. public string _shapeName;
  12. public float _frameWeight;
  13. public Vector3[] _deltaVertices;
  14. public Vector3[] _deltaNormals;
  15. public Vector3[] _deltaTangents;
  16. public int _vertexOffset;
  17. public BlendShapeFrame(string shapeName_p, float frameWeight_p, Vector3[] deltaVertices_p, Vector3[] deltaNormals_p, Vector3[] deltaTangents_p, int offset) {
  18. _shapeName = shapeName_p;
  19. _frameWeight = frameWeight_p;
  20. _deltaVertices = deltaVertices_p;
  21. _deltaNormals = deltaNormals_p;
  22. _deltaTangents = deltaTangents_p;
  23. _vertexOffset = offset;
  24. }
  25. }
  26. }