diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-08-22 22:58:03 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-08-22 22:58:03 +0200 |
| commit | d071fc5c947689eca7726803a420013c519acdd9 (patch) | |
| tree | 4d96af4d9725bcdf2741cb73181d49a8fe5d5682 /include/material.hpp | |
| parent | 7db04c9ae57b087f1d122d67a75fa02563911796 (diff) | |
Refactored diffuse brdf & brdf computation done in tangent
Diffstat (limited to 'include/material.hpp')
| -rw-r--r-- | include/material.hpp | 14 |
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_ |
