-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrtwoodtexture.h
40 lines (32 loc) · 1011 Bytes
/
rtwoodtexture.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#ifndef RTWOODTEXTURE_H
#define RTWOODTEXTURE_H
#include"rtbrdf.h"
#include"rtlatticenoise.h"
#include "rtcolor.h"
#include "rtvector.h"
class RTWoodTexture: public RTBRDF
{
private:
RTLatticeNoise perlimNoise;
RTColor colorWood1;
RTColor colorWood2;
double scale;
public:
RTWoodTexture();
RTWoodTexture(double ka, double kd, double ks, double kr, int n, int surfaceType, int material,
RTColor colorWood1, RTColor colorWood2,double scale);
RTWoodTexture(RTWoodTexture& cpy);
RTLatticeNoise getPerlimNoise() const;
void setPerlimNoise(const RTLatticeNoise &value);
RTColor getColorWood1() const;
void setColorWood1(const RTColor &value);
RTColor getColorWood2() const;
void setColorWood2(const RTColor &value);
double getScale() const;
void setScale(double value);
// RTBRDF interface
public:
virtual RTColor getColor(RTVector hitPoint) const;
virtual double getRefracIndex() const;
};
#endif // RTWOODTEXTURE_H