Make this code buildable as is

Signed-off by: Arthur Brainville (Ybalrid) <ybalrid@ybalrid.info>
This commit is contained in:
Arthur Brainville (Ybalrid) 2018-02-18 19:21:38 +01:00
parent c81be8f87d
commit 90ff6f7ce9
No known key found for this signature in database
GPG Key ID: BC05C4812A06BCF3
6 changed files with 3846 additions and 3 deletions

View File

@ -1,4 +1,4 @@
{ "obj_filename" : "../common/cornellbox_suzanne.obj",
{ "obj_filename" : "cornellbox_suzanne.obj",
"scene_scale" : 1.0,
"width" : 512,
"height" : 512,

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1 @@
#include "nanort.h"

2313
examples/raytrace/nanort.h Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,5 @@
#include "obj-loader.h"
#include "../../nanort.h" // for float3
#include "nanort.h" // for float3
#define TINYOBJLOADER_IMPLEMENTATION
#include "tiny_obj_loader.h"

View File

@ -41,7 +41,7 @@ THE SOFTWARE.
#include <iostream>
#include "../../nanort.h"
#include "nanort.h"
#include "matrix.h"
#include "material.h"
#include "mesh.h"