Some fixes to the photon tracing.

This commit is contained in:
2017-03-06 16:51:12 -04:00
parent 9e75590498
commit 8e7c6490ec
3 changed files with 46 additions and 35 deletions

View File

@@ -13,9 +13,9 @@ public:
virtual ~PhotonTracer();
virtual vec3 trace_ray(Ray & r, Scene * s, unsigned int rec_level) const;
void build_photon_map(Scene * s, const size_t n_photons_per_ligth = 10000, const bool specular = false);
void photon_tracing(Scene * s, const size_t n_photons_per_ligth = 10000, const bool specular = false);
void build_photon_map(const char * photons_file);
void build_photon_map();
private:
float m_h_radius;
kdTree m_photon_map;