예제 #1
0
        private static void ImportMeshes(AssetsManagerInstance AM)
        {
            Dictionary <string, NamePlusScale> pathNamePairs = new Dictionary <string, NamePlusScale>();

            pathNamePairs.Add("Sponza.fbx", new NamePlusScale("SponzaMesh", 0.03f));

            pathNamePairs.Add("Cow.obj", new NamePlusScale("CowMesh", 0.0033f));

            pathNamePairs.Add("skysphere_mesh.FBX", new NamePlusScale("SkyDomeMesh"));
            pathNamePairs.Add("cube1m.FBX", new NamePlusScale("Cube1mMesh"));

            foreach (string path in pathNamePairs.Keys)
            {
                AM.CreateMeshAsset(RawContentPath + path, pathNamePairs[path].name, pathNamePairs[path].scale);
            }
        }