Esempio n. 1
0
 public PmxMaterialAttribute(PmxMaterialAttribute att)
 {
     BumpMapTexture   = att.BumpMapTexture;
     NormalMapTexture = att.NormalMapTexture;
     CubeMapTexture   = att.CubeMapTexture;
     BumpMapUV        = att.BumpMapUV;
     NormalMapUV      = att.NormalMapUV;
     CubeMapUV        = att.CubeMapUV;
 }
 // Token: 0x060001BC RID: 444 RVA: 0x000104E0 File Offset: 0x0000E6E0
 public PmxMaterialAttribute(PmxMaterialAttribute att)
 {
     this.BumpMapTexture   = att.BumpMapTexture;
     this.NormalMapTexture = att.NormalMapTexture;
     this.CubeMapTexture   = att.CubeMapTexture;
     this.BumpMapUV        = att.BumpMapUV;
     this.NormalMapUV      = att.NormalMapUV;
     this.CubeMapUV        = att.CubeMapUV;
 }
        // Token: 0x060001BF RID: 447 RVA: 0x000106C0 File Offset: 0x0000E8C0
        public void SetFromText(string text)
        {
            this.Clear();
            bool flag = !string.IsNullOrEmpty(text);

            if (flag)
            {
                string[] tag   = PmxTag.GetTag("BumpMap", text);
                bool     flag2 = tag != null && tag.Length != 0;
                if (flag2)
                {
                    this.BumpMapTexture = tag[0];
                }
                string[] tag2  = PmxTag.GetTag("BumpMapUV", text);
                bool     flag3 = tag2 != null && tag2.Length != 0;
                if (flag3)
                {
                    this.BumpMapUV = PmxMaterialAttribute.TextToUVTarget(tag2[0]);
                }
                string[] tag3  = PmxTag.GetTag("NormalMap", text);
                bool     flag4 = tag3 != null && tag3.Length != 0;
                if (flag4)
                {
                    this.NormalMapTexture = tag3[0];
                }
                string[] tag4  = PmxTag.GetTag("NormalMapUV", text);
                bool     flag5 = tag4 != null && tag4.Length != 0;
                if (flag5)
                {
                    this.NormalMapUV = PmxMaterialAttribute.TextToUVTarget(tag4[0]);
                }
                string[] tag5  = PmxTag.GetTag("CubeMap", text);
                bool     flag6 = tag5 != null && tag5.Length != 0;
                if (flag6)
                {
                    this.CubeMapTexture = tag5[0];
                }
                string[] tag6  = PmxTag.GetTag("CubeMapUV", text);
                bool     flag7 = tag6 != null && tag6.Length != 0;
                if (flag7)
                {
                    this.CubeMapUV = PmxMaterialAttribute.TextToUVTarget(tag6[0]);
                }
            }
        }
 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();
 }