diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2021-09-06 22:55:51 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2021-09-06 22:55:51 +0200 |
| commit | 3f6d9a3a75e2615866f8ed2cd0015fabea6490b7 (patch) | |
| tree | 077e568cca0a8823f0b361f570a2d76b43011aac /include/material.hpp | |
| parent | bf512216323f3df55627421bb0187ed364d58340 (diff) | |
Load gltf materials + diffuse and specular brdf
Diffstat (limited to 'include/material.hpp')
| -rw-r--r-- | include/material.hpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/material.hpp b/include/material.hpp index ae42179..0336fb5 100644 --- a/include/material.hpp +++ b/include/material.hpp @@ -3,11 +3,18 @@ #include "vec3.hpp" +struct texture { + uint32_t image_id; + uint32_t sampler_id; + uint32_t padding[2]; +}; + struct material { color base_color; + texture base_color_texture; + texture metallic_roughness_texture; float metalness = 0.f; float roughness = 1.f; - uint32_t padding[2]; }; #endif // !__MATERIAL_HPP_ |
