forked from nishantb15/Ray-Tracer-Part-2-BVH-and-Mesh
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.h
50 lines (40 loc) · 650 Bytes
/
main.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
41
42
43
44
45
46
47
48
49
#ifndef MAIN_H
#define MAIN_H
#include "algebra3.h"
#include "imageIO.h"
#include "object.h"
class Light
{
public:
Light() {}
vec3 getIi(){
return Ii;
}
Material getMaterial(){
return material;
}
vec3 getPosition() {
return pos;
}
public:
vec3 pos;
vec3 P, Ii; // hit point, ambient
Material material;
};
class Camera
{
public:
vec3 pos;
vec3 d;
float angle;
};
class Viewport
{
public:
vec3 center;
vec3 dir;
vec3 up_dir;
int width, height;
vec3 hori, vert;
};
#endif