Exemple #1
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(TextureName, Texture.ExportYAML(container));
            node.Add(NormalMapName, NormalMap.ExportYAML(container));
            node.Add(TileSizeName, TileSize.ExportYAML(container));
            node.Add(TileOffsetName, TileOffset.ExportYAML(container));
            node.Add(SpecularMetallicName, SpecularMetallic.ExportYAML(container));
            node.Add(SmoothnessName, Smoothness);
            return(node);
        }
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add("texture", Texture.ExportYAML(container));
            node.Add("normalMap", NormalMap.ExportYAML(container));
            node.Add("tileSize", TileSize.ExportYAML(container));
            node.Add("tileOffset", TileOffset.ExportYAML(container));
            node.Add("specularMetallic", SpecularMetallic.ExportYAML(container));
            node.Add("smoothness", Smoothness);
            return(node);
        }
        protected override YAMLMappingNode ExportYAMLRoot(IExportContainer container)
        {
            YAMLMappingNode node = base.ExportYAMLRoot(container);

            node.Add(DiffuseTextureName, DiffuseTexture.ExportYAML(container));
            node.Add(NormalMapTextureName, NormalMapTexture.ExportYAML(container));
            node.Add(MaskMapTextureName, MaskMapTexture.ExportYAML(container));
            node.Add(TileSizeName, TileSize.ExportYAML(container));
            node.Add(TileOffsetName, TileOffset.ExportYAML(container));
            node.Add(SpecularName, Specular.ExportYAML(container));
            node.Add(MetallicName, Metallic);
            node.Add(SmoothnessName, Smoothness);
            node.Add(NormalScaleName, NormalScale);
            node.Add(DiffuseRemapMinName, DiffuseRemapMin.ExportYAML(container));
            node.Add(DiffuseRemapMaxName, DiffuseRemapMax.ExportYAML(container));
            node.Add(MaskMapRemapMinName, MaskMapRemapMin.ExportYAML(container));
            node.Add(MaskMapRemapMaxName, MaskMapRemapMax.ExportYAML(container));
            return(node);
        }
Exemple #4
0
        public YAMLNode ExportYAML(IExportContainer container)
        {
            YAMLMappingNode node = new YAMLMappingNode();

            node.Add(TextureName, Texture.ExportYAML(container));
            if (HasNormalMap(container.ExportVersion))
            {
                node.Add(NormalMapName, NormalMap.ExportYAML(container));
            }
            node.Add(TileSizeName, TileSize.ExportYAML(container));
            if (HasTileOffset(container.ExportVersion))
            {
                node.Add(TileOffsetName, TileOffset.ExportYAML(container));
            }
            if (HasSpecularMetallic(container.ExportVersion))
            {
                node.Add(SpecularMetallicName, SpecularMetallic.ExportYAML(container));
            }
            if (HasSmoothness(container.ExportVersion))
            {
                node.Add(SmoothnessName, Smoothness);
            }
            return(node);
        }