Ejemplo n.º 1
0
 /// <summary>
 /// Normalize vertex position by local matrix.
 /// </summary>
 public static void GetNormalizedFactor(this EffectArea area, int index, Matrix2x3 matrix, Vector2 position,
                                        bool isText, out Vector2 nomalizedPos)
 {
     if (isText && area == EffectArea.Character)
     {
         nomalizedPos = matrix * splitedCharacterPosition[(index + 3) % 4];
     }
     else
     {
         nomalizedPos = matrix * position;
     }
 }
Ejemplo n.º 2
0
 public void GetNormalizedFactor(EffectArea area, int index, Matrix2x3 matrix, Vector2 position, out Vector2 normalizedPos)
 {
     normalizedPos = matrix * position;
 }