From 3f6d9a3a75e2615866f8ed2cd0015fabea6490b7 Mon Sep 17 00:00:00 2001 From: ladevieq Date: Mon, 6 Sep 2021 22:55:51 +0200 Subject: Load gltf materials + diffuse and specular brdf --- include/material.hpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'include/material.hpp') 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_ -- cgit v1.3