Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
349 awk 1
#ifndef __PATHTRACER_MATERIAL__HPP__
2
#define __PATHTRACER_MATERIAL__HPP__
3
 
4
#include "core.hpp"
5
 
6
class material
7
{
8
public:
9
    material(float ior, float ext);
10
    virtual ~material(void) = 0;
11
 
12
    virtual void sample(const ray&, hit_info&) const = 0;
13
 
14
protected:
15
 
16
    //index of refraction (real part)
17
    float ior_;
18
 
19
    //index of refraction (complex part)
20
    float extinction_;
21
};
22
 
23
#endif
24
 
25
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007