Separated Whitted from Path Tracing. Added FreeImage dependecy.

This commit is contained in:
Miguel Angel Astor Romero
2017-01-11 13:45:17 -04:00
parent ea7529f995
commit a9670e93f0
9 changed files with 154 additions and 33 deletions

20
whitted_tracer.hpp Normal file
View File

@@ -0,0 +1,20 @@
#pragma once
#ifndef WHITTED_TRACER_HPP
#define WHITTED_TRACER_HPP
#include "tracer.hpp"
class WhittedTracer: public Tracer {
public:
bool indirect_l;
WhittedTracer(): Tracer(), indirect_l(false) { }
WhittedTracer(int h, int w, float fov, bool il): Tracer(h, w, fov), indirect_l(il) { };
virtual ~WhittedTracer();
virtual vec3 trace_ray(Ray & r, vector<Figure *> & v_figures, vector<Light *> & v_lights, unsigned int rec_level) const;
};
#endif