RayTracer Initial Framework setup

This commit is contained in:
IlyaShurupov 2023-10-15 21:58:52 +03:00 committed by Ilya Shurupov
parent 25b66804a4
commit 15b56a876a
741 changed files with 3146 additions and 1 deletions

View file

@ -0,0 +1,20 @@
#include "NewPlacement.hpp"
#include "CommandLine.hpp"
#include "Module.hpp"
#include "RayTracer.hpp"
using namespace tp;
ModuleManifest* sDependencies[] = {&gModuleMath, &gModuleCommandLine, &gModuleConnection, nullptr};
ModuleManifest tp::gModuleRayTracer = ModuleManifest("RayTracer", nullptr, nullptr, sDependencies);
void RayTracer::render(const Scene& scene, RayTracer::RenderBuffer& buff) {
for (RayTracer::RenderBuffer::Index i = 0; i < buff.size().x; i++) {
for (RayTracer::RenderBuffer::Index j = 0; j < buff.size().y; j++) {
buff.set({i, j}, RGBA(1.f, 1.f, 1.f, 1.f));
}
}
}