Esempio n. 1
0
 public Color[,] GetFrame(Model model, Color color)
 => Rasterizer.Render(model, Camera, color);
Esempio n. 2
0
 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;
 }
Esempio n. 3
0
 public Scene(Camera camera, Model model, Rasterizer rasterizer)
 {
     Camera     = camera;
     Rasterizer = rasterizer;
     Model      = model;
 }