diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-01-04 23:47:59 +0100 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-01-04 23:47:59 +0100 |
| commit | 8c3376c49f803e1d28e76ed100d4d417394df41f (patch) | |
| tree | 2288bd6b2364953cd491345d8be4790fb415183b /include | |
| parent | 5c66c6673590323b2f875b77a353cd852565b4d1 (diff) | |
Dielectric materials
Diffstat (limited to 'include')
| -rw-r--r-- | include/vk-renderer.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/vk-renderer.hpp b/include/vk-renderer.hpp index afd5019..2e996c8 100644 --- a/include/vk-renderer.hpp +++ b/include/vk-renderer.hpp @@ -9,6 +9,7 @@ enum MATERIAL_TYPE: uint32_t { LAMBERTIAN, METAL, + DIELECTRIC, }; struct input_data { @@ -29,12 +30,13 @@ struct input_data { struct material { color albedo; float fuzz; + float ior; uint32_t type; - uint32_t padding[2]; + uint32_t padding; } material; float radius; float padding[3]; - } spheres[4]; + } spheres[5]; uint32_t max_bounce; float padding[3]; |
