Subversion Repositories gelsvn

Rev

Rev 346 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 349
Line 1... Line 1...
1
#ifndef __PATHTRACER_X__HPP__
1
#ifndef __PATHTRACER_X__HPP__
2
#define __PATHTRACER_X__HPP__
2
#define __PATHTRACER_X__HPP__
3
 
3
 
4
#include "tracer.hpp"
4
#include "tracer.hpp"
5
 
5
 
6
class path_tracer : public tracer
6
class path_tracer : public tracer
7
{
7
{
8
public:
8
public:
9
	path_tracer(int width, int height, bool explicit_direct, int subsamples);
9
    path_tracer(int width, int height, bool explicit_direct, int subsamples);
10
 
10
 
11
	CGLA::Vec3f compute_pixel(int w, int h);
11
    CGLA::Vec3f compute_pixel(int w, int h);
12
 
12
 
13
private:
13
private:
14
	
14
 
15
	CGLA::Vec3f trace(const ray& r, bool include_emitted);
15
    CGLA::Vec3f trace(const ray& r, bool include_emitted);
16
 
16
 
17
	//use explicit integration of direct illumination
17
    //use explicit integration of direct illumination
18
	bool explicit_direct_;
18
    bool explicit_direct_;
19
 
19
 
20
	//
20
    //
21
	int subsamples_;
21
    int subsamples_;
22
};
22
};
23
 
23
 
24
#endif
24
#endif
25
 
25
 
26
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007
26
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007