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_MATTE__HPP__
1
#ifndef __PATHTRACER_MATTE__HPP__
2
#define __PATHTRACER_MATTE__HPP__
2
#define __PATHTRACER_MATTE__HPP__
3
 
3
 
4
#include "material.hpp"
4
#include "material.hpp"
5
 
5
 
6
class matte : public material
6
class matte : public material
7
{
7
{
8
public:
8
public:
9
	//diffuse is rho (diffuse reflectance)
9
    //diffuse is rho (diffuse reflectance)
10
	matte(const CGLA::Vec3f& diffuse);
10
    matte(const CGLA::Vec3f& diffuse);
11
 
11
 
12
	void sample(const ray&, hit_info&) const;
12
    void sample(const ray&, hit_info&) const;
13
 
13
 
14
private:
14
private:
15
	CGLA::Vec3f diffuse_;
15
    CGLA::Vec3f diffuse_;
16
};
16
};
17
 
17
 
18
#endif
18
#endif
19
 
19
 
20
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007
20
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007