public void LoadVMD(string root, string dir, string name) { RenderSets.Clear(); RenderSets.Add(new RenderSet("builtin:default", "screen")); RenderSets.Add(new RenderSet("builtin:default_alpha", "screen")); string path = root + dir + name; Motions[path] = new VMD(path); CurrentMotion = path; Surface.Animation = true; }
public void LoadPMD(string root, string dir, string name) { RenderSets.Add(new RenderSet("builtin:nomotion", "screen")); RenderSets.Add(new RenderSet("builtin:nomotion_alpha", "screen")); string path = root + dir + name; var surface = new PMD(path); surface.SetupShellSurface(); Surface = surface; AddTextures(root, dir); // Load ends Surface.Animation = false; Surface.Loaded = true; Log.Debug("Shell", "PMD load ends."); }