Add Framwork for Assignment 3
This commit is contained in:
parent
a2d7f5c414
commit
c864d2a42f
14 changed files with 50048 additions and 48111 deletions
|
|
@ -9,6 +9,7 @@
|
|||
#include <algorithms/parallel_for.h>
|
||||
#include <scenegraph/scenegraph.h>
|
||||
#include <scenegraph/grid.h>
|
||||
#include "film.hpp"
|
||||
// #include <lights/light.h>
|
||||
|
||||
#include "scene.hpp"
|
||||
|
|
@ -23,6 +24,7 @@ struct Sample {
|
|||
embree::Vec3fa Ns;
|
||||
};
|
||||
|
||||
|
||||
struct Data {
|
||||
RenderScene* scene;
|
||||
Grid* densityGrid;
|
||||
|
|
@ -31,25 +33,23 @@ struct Data {
|
|||
int max_path_length;
|
||||
|
||||
/* accumulation buffer */
|
||||
embree::Vec3ff* accu;
|
||||
unsigned int accu_width;
|
||||
unsigned int accu_height;
|
||||
Film film;
|
||||
|
||||
unsigned int accu_count;
|
||||
|
||||
unsigned int frame_count = 0;
|
||||
|
||||
RTCScene g_scene;
|
||||
};
|
||||
|
||||
inline void Data_Constructor(Data* This, int spp, int max_path_length) {
|
||||
This->g_scene = nullptr;
|
||||
This->scene = nullptr;
|
||||
This->accu = nullptr;
|
||||
|
||||
This->spp = spp;
|
||||
This->max_path_length = max_path_length;
|
||||
|
||||
This->accu = nullptr;
|
||||
This->accu_width = 0;
|
||||
This->accu_height = 0;
|
||||
|
||||
This->accu_count = 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue