public static MaterialFormat DefaultColors(this MaterialFormat mf) { mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.BLACK, Color3f.FromRGB(0, 0, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.WHITE, Color3f.FromRGB(255, 255, 255))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.RED, Color3f.FromRGB(255, 0, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.LIME, Color3f.FromRGB(0, 255, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.BLUE, Color3f.FromRGB(0, 0, 255))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.YELLOW, Color3f.FromRGB(255, 255, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.CYAN, Color3f.FromRGB(0, 255, 255))); // Aqua mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.MAGENTA, Color3f.FromRGB(255, 0, 255))); // Fuchsia mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.SILVER, Color3f.FromRGB(192, 192, 192))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.GRAY, Color3f.FromRGB(128, 128, 128))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.MAROON, Color3f.FromRGB(128, 0, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.OLIVE, Color3f.FromRGB(128, 128, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.GREEN, Color3f.FromRGB(0, 128, 0))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.PURPLE, Color3f.FromRGB(128, 0, 128))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.TEAL, Color3f.FromRGB(0, 128, 128))); mf.AddMaterial(new MaterialFormat.Mat(WavefrontColor.NAVY, Color3f.FromRGB(0, 0, 128))); return(mf); }
public static MaterialFormat DefaultColors(this MaterialFormat mf) { mf.AddMaterial(new MaterialFormat.Mat("Black", Color3f.FromRGB(0, 0, 0))); mf.AddMaterial(new MaterialFormat.Mat("White", Color3f.FromRGB(255, 255, 255))); mf.AddMaterial(new MaterialFormat.Mat("Red", Color3f.FromRGB(255, 0, 0))); mf.AddMaterial(new MaterialFormat.Mat("Lime", Color3f.FromRGB(0, 255, 0))); mf.AddMaterial(new MaterialFormat.Mat("Blue", Color3f.FromRGB(0, 0, 255))); mf.AddMaterial(new MaterialFormat.Mat("Yellow", Color3f.FromRGB(255, 255, 0))); mf.AddMaterial(new MaterialFormat.Mat("Cyan", Color3f.FromRGB(0, 255, 255))); // Aqua mf.AddMaterial(new MaterialFormat.Mat("Magenta", Color3f.FromRGB(255, 0, 255))); // Fuchsia mf.AddMaterial(new MaterialFormat.Mat("Silver", Color3f.FromRGB(192, 192, 192))); mf.AddMaterial(new MaterialFormat.Mat("Gray", Color3f.FromRGB(128, 128, 128))); mf.AddMaterial(new MaterialFormat.Mat("Maroon", Color3f.FromRGB(128, 0, 0))); mf.AddMaterial(new MaterialFormat.Mat("Olive", Color3f.FromRGB(128, 128, 0))); mf.AddMaterial(new MaterialFormat.Mat("Green", Color3f.FromRGB(0, 128, 0))); mf.AddMaterial(new MaterialFormat.Mat("Purple", Color3f.FromRGB(128, 0, 128))); mf.AddMaterial(new MaterialFormat.Mat("Teal", Color3f.FromRGB(0, 128, 128))); mf.AddMaterial(new MaterialFormat.Mat("Navy", Color3f.FromRGB(0, 0, 128))); return(mf); }