RayTracer Initial Framework setup
This commit is contained in:
parent
8d990a0132
commit
94d47ba390
741 changed files with 3146 additions and 1 deletions
20
RayTracer/private/RayTracer.cpp
Normal file
20
RayTracer/private/RayTracer.cpp
Normal 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));
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue