Subversion Repositories gelsvn

Rev

Rev 346 | Blame | Last modification | View Log | RSS feed

#ifndef __PATHTRACER_MATERIAL__HPP__
#define __PATHTRACER_MATERIAL__HPP__

#include "core.hpp"

class material
{
public:
    material(float ior, float ext);
    virtual ~material(void) = 0;

    virtual void sample(const ray&, hit_info&) const = 0;

protected:

    //index of refraction (real part)
    float ior_;

    //index of refraction (complex part)
    float extinction_;
};

#endif

//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007

Generated by GNU Enscript 1.6.6.