Photon mapping can be executed now. Buggy as heck.

This commit is contained in:
2017-02-22 16:23:33 -04:00
parent 9bb6c0b759
commit 18dd3dc3c6
5 changed files with 132 additions and 26 deletions

View File

@@ -148,7 +148,7 @@ public:
void addPhoton(Photon p);
bool buildKdTree();
void printTree();
std::vector<Photon> findInRange (Vec3 min, Vec3 max);
std::vector<Photon> findInRange (Vec3 min, Vec3 max) const;
private:
treeNode* root;
@@ -179,5 +179,5 @@ private:
void printNode(treeNode* node);
void findInRange (Vec3 min, Vec3 max, std::vector<Photon> &photons, treeNode *node);
void findInRange (Vec3 min, Vec3 max, std::vector<Photon> &photons, treeNode *node) const;
};