Subversion Repositories gelsvn

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
688 khor 1
#ifndef __PATHTRACER_PLASTIC__H__
2
#define __PATHTRACER_PLASTIC__H__
3
 
4
#include "material.h"
5
 
6
class plastic : public material
7
{
8
public:
9
    plastic(const CGLA::Vec3f& diffuse, const CGLA::Vec3f& glossy,
10
        float shininess);
11
 
12
    void sample(const ray&, hit_info&) const;
13
 
14
private:
15
    CGLA::Vec3f diffuse_;
16
    CGLA::Vec3f glossy_;
17
    float shininess_;
18
};
19
 
20
#endif
21
 
22
//02566 framework, Anders Wang Kristensen, awk@imm.dtu.dk, 2007