Subversion Repositories gelsvn

Rev

Rev 353 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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

Generated by GNU Enscript 1.6.6.
25

Generated by GNU Enscript 1.6.6.
26
 
26
 
27
 
27
 
28
 
28