aboutsummaryrefslogtreecommitdiffstats
path: root/include/material.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/material.hpp')
-rw-r--r--include/material.hpp14
1 files changed, 3 insertions, 11 deletions
diff --git a/include/material.hpp b/include/material.hpp
index ee4281b..4853279 100644
--- a/include/material.hpp
+++ b/include/material.hpp
@@ -3,20 +3,12 @@
#include "vec3.hpp"
-enum MATERIAL_TYPE: uint32_t {
- LAMBERTIAN = 0,
- METAL = 1,
- DIELECTRIC = 2,
- EMISSIVE = 3,
-};
-
struct material {
color albedo;
color emissive;
- float fuzz;
- float ior;
- uint32_t type;
- uint32_t padding;
+ float metalness = 0.f;
+ float roughness = 1.f;
+ uint32_t padding[2];
};
#endif // !__MATERIAL_HPP_