Subversion Repositories gelsvn

Rev

Rev 346 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 346 Rev 349
Line 1... Line 1...
1
#ifndef __PATHTRACER_PLASTIC__HPP__
1
#ifndef __PATHTRACER_PLASTIC__HPP__
2
#define __PATHTRACER_PLASTIC__HPP__
2
#define __PATHTRACER_PLASTIC__HPP__
3
 
3
 
4
#include "material.hpp"
4
#include "material.hpp"
5
 
5
 
6
class plastic : public material
6
class plastic : public material
7
{
7
{
8
public:
8
public:
9
	plastic(const CGLA::Vec3f& diffuse, const CGLA::Vec3f& glossy,
9
    plastic(const CGLA::Vec3f& diffuse, const CGLA::Vec3f& glossy,
10
		float shininess);
10
        float shininess);
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
	CGLA::Vec3f glossy_;
16
    CGLA::Vec3f glossy_;
17
	float shininess_;
17
    float shininess_;
18
};
18
};
19
 
19
 
20
#endif
20
#endif
21
 
21
 
22
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007
22
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007