rayzor

view src/material.h @ 18:859ccadca671

portability fixes
author John Tsiombikas <nuclear@member.fsf.org>
date Mon, 14 Apr 2014 18:35:37 +0300
parents
children 5380ff64e83f
line source
1 #ifndef MATERIAL_H_
2 #define MATERIAL_H_
4 #include "vmath.h"
6 class Material {
7 public:
8 Vector3 diffuse, specular;
9 float roughness;
10 float reflect, refract;
11 float ior;
13 Material()
14 : diffuse(0.75, 0.75, 0.75), specular(1, 1, 1)
15 {
16 roughness = 1.0;
17 reflect = refract = 0.0;
18 ior = 1.0;
19 }
20 };
22 #endif // MATERIAL_H_