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