aboutsummaryrefslogtreecommitdiffstats
path: root/include/material.hpp
diff options
context:
space:
mode:
authorladevieq <ladevie.quentin@gmail.com>2022-09-08 23:04:06 +0200
committerladevieq <ladevie.quentin@gmail.com>2022-09-08 23:04:06 +0200
commit2d16fbd7e235bf2cc96d451469d8d39cae1917c3 (patch)
treeab565ca756c6341ec36f91835d548cfd989b6e1f /include/material.hpp
parentb7c2511e588f1da63413a38a624fd3e6bb8cf54d (diff)
First render using new texture uploading system
Diffstat (limited to 'include/material.hpp')
-rw-r--r--include/material.hpp16
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;
+};