rayzor
diff src/material.h @ 17:79609d482762
the renderer renders, also fixed an unnoticed matrix conversion problem between scenegraph and min3d
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Mon, 14 Apr 2014 07:34:45 +0300 |
parents | |
children | 5380ff64e83f |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/material.h Mon Apr 14 07:34:45 2014 +0300 1.3 @@ -0,0 +1,22 @@ 1.4 +#ifndef MATERIAL_H_ 1.5 +#define MATERIAL_H_ 1.6 + 1.7 +#include "vmath.h" 1.8 + 1.9 +class Material { 1.10 +public: 1.11 + Vector3 diffuse, specular; 1.12 + float roughness; 1.13 + float reflect, refract; 1.14 + float ior; 1.15 + 1.16 + Material() 1.17 + : diffuse(0.75, 0.75, 0.75), specular(1, 1, 1) 1.18 + { 1.19 + roughness = 1.0; 1.20 + reflect = refract = 0.0; 1.21 + ior = 1.0; 1.22 + } 1.23 +}; 1.24 + 1.25 +#endif // MATERIAL_H_