Separated Whitted from Path Tracing. Added FreeImage dependecy.
This commit is contained in:
20
whitted_tracer.hpp
Normal file
20
whitted_tracer.hpp
Normal 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
|
Reference in New Issue
Block a user