tmp
This commit is contained in:
parent
0e41a6e4fd
commit
e00ab4059c
1 changed files with 3 additions and 2 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
// #include "NewPlacement.hpp"
|
// #include "NewPlacement.hpp"
|
||||||
|
|
||||||
#include "Buffer.hpp"
|
#include "Buffer.hpp"
|
||||||
|
#include "CommandLine.hpp"
|
||||||
#include "RayTracer.hpp"
|
#include "RayTracer.hpp"
|
||||||
#include "Strings.hpp"
|
#include "Strings.hpp"
|
||||||
#include "Timing.hpp"
|
#include "Timing.hpp"
|
||||||
|
|
@ -74,8 +75,8 @@ void renderCommand(const String& scenePath, RayTracer::RenderBuffer::Index2D siz
|
||||||
|
|
||||||
scene.mCamera.lookAtPoint({0, 0, 0}, {-3, -3, 3}, {1, 1, 1});
|
scene.mCamera.lookAtPoint({0, 0, 0}, {-3, -3, 3}, {1, 1, 1});
|
||||||
scene.mCamera.setFOV(3.14 / 4);
|
scene.mCamera.setFOV(3.14 / 4);
|
||||||
scene.mCamera.setRatio((halnf) size.y / (halnf) size.x);
|
|
||||||
scene.mCamera.setFar(100);
|
scene.mCamera.setFar(100);
|
||||||
|
scene.mCamera.setRatio((halnf) size.y / (halnf) size.x);
|
||||||
|
|
||||||
RayTracer::RenderBuffer output;
|
RayTracer::RenderBuffer output;
|
||||||
output.reserve(size);
|
output.reserve(size);
|
||||||
|
|
@ -93,7 +94,7 @@ void renderCommand(const String& scenePath, RayTracer::RenderBuffer::Index2D siz
|
||||||
writeImage(output);
|
writeImage(output);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main(int argc, const char** argv) {
|
||||||
tp::ModuleManifest* deps[] = {&gModuleRayTracer, nullptr};
|
tp::ModuleManifest* deps[] = {&gModuleRayTracer, nullptr};
|
||||||
tp::ModuleManifest module("Rayt", nullptr, nullptr, deps);
|
tp::ModuleManifest module("Rayt", nullptr, nullptr, deps);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue