Subversion Repositories gelsvn

Rev

Rev 349 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
353 awk 1
#ifndef __PATHTRACER_MATERIAL__H__
2
#define __PATHTRACER_MATERIAL__H__
349 awk 3
 
353 awk 4
#include "core.h"
349 awk 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