Subversion Repositories gelsvn

Rev

Rev 349 | Details | Compare with Previous | Last modification | View Log | RSS feed

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