forked from nishantb15/Ray-Tracer-Part-2-BVH-and-Mesh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
object.h
38 lines (29 loc) · 637 Bytes
/
object.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
#ifndef OBJECT_H
#define OBJECT_H
#include "main.h"
#include "ray.h"
#include <vector>
#include "hittable_list.h"
#include "TriangleMesh.h"
using namespace std;
using std::find;
// Light light;
class Material
{
public:
char obj;
vec3 color;
float Ka, Kd, Ks;
int exp;
float Reflect;
void setMaterial(vec3 color, float Ka, float Kd, float Ks, int exp, float Reflect)
{
this->color = color;
this->Ka = Ka;
this->Kd = Kd;
this->Ks = Ks;
this->exp = exp;
this->Reflect = Reflect;
}
};
#endif