コード例 #1
0
        public TexturedMaterial(Assimp.Material m, string materialDirectory)
            : this()
        {
            Diffuse = m.ColorDiffuse.ToNETColor();
            Specular = m.ColorSpecular.ToNETColor();
            //Ambient = m.ColorAmbient.ToNETColor();
            Emissive = m.ColorEmissive.ToNETColor();

            textureSlots = new List<Assimp.TextureSlot>(m.GetAllTextures());
            LoadTextures(materialDirectory);
        }