diff options
| author | ladevieq <ladevie.quentin@gmail.com> | 2022-09-06 22:41:00 +0200 |
|---|---|---|
| committer | ladevieq <ladevie.quentin@gmail.com> | 2022-09-06 22:41:00 +0200 |
| commit | b0708f165601fad16aa59715dbe32796a6e7081e (patch) | |
| tree | 7741e0fd5e180905618d27ac4003c74633b96a13 /include/material.hpp | |
| parent | 24b02adbf6189025c00d62417fb4b49346f22c98 (diff) | |
Setup for texture upload system
Diffstat (limited to 'include/material.hpp')
| -rw-r--r-- | include/material.hpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/include/material.hpp b/include/material.hpp index efa6141..5ac08f1 100644 --- a/include/material.hpp +++ b/include/material.hpp @@ -1,11 +1,12 @@ -#ifndef __MATERIAL_HPP_ -#define __MATERIAL_HPP_ +#pragma once #include <cstdint> #include "vec3.hpp" -struct texture { +class Texture; + +struct gpu_texture { uint32_t image_id; uint32_t sampler_id; uint32_t padding[2]; @@ -13,10 +14,8 @@ struct texture { struct material { color base_color; - texture base_color_texture; - texture metallic_roughness_texture; + Texture* base_color_texture; + Texture* metallic_roughness_texture; float metalness = 1.f; float roughness = 1.f; }; - -#endif // !__MATERIAL_HPP_ |
