cloudy-raytracer/renderer/simplerenderer.cpp
2022-11-05 22:08:16 +01:00

16 lines
407 B
C++

#include "camera/camera.h"
#include "renderer/simplerenderer.h"
#include "scene/scene.h"
#include <iostream>
#include <chrono>
#include <iomanip>
Texture SimpleRenderer::renderImage(Scene const &scene, Camera const &camera, int width, int height) {
Texture image(width, height);
// Calculate the aspect ration
// Create the image by casting one ray into the scene for each pixel
return image;
}