aboutsummaryrefslogtreecommitdiffstats
path: root/include/material.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2021-09-06 22:55:51 +0200
committerladevieq <ladevie.quentin@gmail.com>2021-09-06 22:55:51 +0200
commit3f6d9a3a75e2615866f8ed2cd0015fabea6490b7 (patch)
tree077e568cca0a8823f0b361f570a2d76b43011aac /include/material.hpp
parentbf512216323f3df55627421bb0187ed364d58340 (diff)
Load gltf materials + diffuse and specular brdf
Diffstat (limited to 'include/material.hpp')
-rw-r--r--include/material.hpp9
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_