public Color[,] GetFrame(Model model, Color color) => Rasterizer.Render(model, Camera, color);
public Scene(int width, int height, float fov, float near, float far, Color backgroundColor, Model model, Rasterizer rasterizer) { Camera = new Camera(width, height, fov, near, far, backgroundColor); Rasterizer = rasterizer; Model = model; }
public Scene(Camera camera, Model model, Rasterizer rasterizer) { Camera = camera; Rasterizer = rasterizer; Model = model; }