// Token: 0x060003AD RID: 941 RVA: 0x00019CBC File Offset: 0x00017EBC
            public static PmxMaterialMorph.MorphData Inter(PmxMaterialMorph.MorphData a, PmxMaterialMorph.MorphData b, float val)
            {
                bool flag = val == 0f;

                PmxMaterialMorph.MorphData result;
                if (flag)
                {
                    result = a;
                }
                else
                {
                    bool flag2 = val == 1f;
                    if (flag2)
                    {
                        result = b;
                    }
                    else
                    {
                        PmxMaterialMorph.MorphData morphData = a;
                        morphData.Mul(1f - val);
                        PmxMaterialMorph.MorphData d = b;
                        d.Mul(val);
                        morphData.Add(d);
                        result = morphData;
                    }
                }
                return(result);
            }
 // Token: 0x060003AC RID: 940 RVA: 0x00019BF8 File Offset: 0x00017DF8
 public void Add(PmxMaterialMorph.MorphData d)
 {
     this.Diffuse   += d.Diffuse;
     this.Specular  += d.Specular;
     this.Ambient   += d.Ambient;
     this.EdgeSize  += d.EdgeSize;
     this.EdgeColor += d.EdgeColor;
     this.Tex       += d.Tex;
     this.Sphere    += d.Sphere;
     this.Toon      += d.Toon;
 }
 // Token: 0x060003AA RID: 938 RVA: 0x00019A90 File Offset: 0x00017C90
 public void Mul(PmxMaterialMorph.MorphData d)
 {
     this.Diffuse   = this.mul_v4(this.Diffuse, d.Diffuse);
     this.Specular  = this.mul_v4(this.Specular, d.Specular);
     this.Ambient   = this.mul_v3(this.Ambient, d.Ambient);
     this.EdgeSize *= d.EdgeSize;
     this.EdgeColor = this.mul_v4(this.EdgeColor, d.EdgeColor);
     this.Tex       = this.mul_v4(this.Tex, d.Tex);
     this.Sphere    = this.mul_v4(this.Sphere, d.Sphere);
     this.Toon      = this.mul_v4(this.Toon, d.Toon);
 }
 public PmxMaterial()
 {
     Name     = "";
     NameE    = "";
     Diffuse  = new Vector4(0f, 0f, 0f, 1f);
     Specular = new Vector3(0f, 0f, 0f);
     Power    = 0f;
     Ambient  = new Vector3(0f, 0f, 0f);
     ClearFlags();
     EdgeColor  = new Vector4(0f, 0f, 0f, 1f);
     EdgeSize   = 1f;
     Tex        = "";
     Sphere     = "";
     SphereMode = SphereModeType.Mul;
     Toon       = "";
     Memo       = "";
     OffsetMul  = default(PmxMaterialMorph.MorphData);
     OffsetAdd  = default(PmxMaterialMorph.MorphData);
     ClearOffset();
     ExDraw    = ExDrawMode.F3;
     Attribute = new PmxMaterialAttribute();
 }
 // Token: 0x060001C9 RID: 457 RVA: 0x0001089C File Offset: 0x0000EA9C
 public PmxMaterialMorph(int index, PmxMaterialMorph.MorphData d) : this()
 {
     this.Index = index;
     this.Data  = d;
 }