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