-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMaterial.hpp
More file actions
36 lines (29 loc) · 862 Bytes
/
Copy pathMaterial.hpp
File metadata and controls
36 lines (29 loc) · 862 Bytes
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
#ifndef MATERIAL_HPP
#define MATERIAL_HPP
class Scene;
class Hit;
class Material;
#include "Vector3.hpp"
#include "Shape.hpp"
#include "Scene.hpp"
class Material {
public:
Vector3 diffuseColor, spectralColor, ambientColor;
fixed32 specularCoefficient, reflectiveIndex;
bool recieveShadows;
Material();
Material(Vector3 dColor,
Vector3 sColor,
Vector3 aColor,
fixed32 sCoefficient,
fixed32 rIndex,
bool recieveShadows);
Material(Vector3 dColor,
Vector3 sColor,
Vector3 aColor,
fixed32 sCoefficient,
fixed32 rIndex);
Vector3 shadeHit(Hit h, Scene* s, unsigned int reflLimit);
Vector3 shadeHit(Hit h, Scene* s);
};
#endif