diff options
Diffstat (limited to 'include/material.hpp')
| -rw-r--r-- | include/material.hpp | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/include/material.hpp b/include/material.hpp index 5ac08f1..71dd4ca 100644 --- a/include/material.hpp +++ b/include/material.hpp @@ -6,12 +6,6 @@ class Texture; -struct gpu_texture { - uint32_t image_id; - uint32_t sampler_id; - uint32_t padding[2]; -}; - struct material { color base_color; Texture* base_color_texture; @@ -19,3 +13,13 @@ struct material { float metalness = 1.f; float roughness = 1.f; }; + +struct gpu_material { + color base_color; + uint32_t albedo_texture_id = 0; + uint32_t albedo_texture_sampler_id = 0; + uint32_t metallic_roughness_texture_id = 0; + uint32_t metallic_roughness_texture_sampler_id = 0; + float metalness = 1.f; + float roughness = 1.f; +}; |
