summaryrefslogtreecommitdiff
path: root/src/renderer/render.h
diff options
context:
space:
mode:
authoromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-10 21:53:14 +1000
committeromniscient <17525998+omnisci3nce@users.noreply.github.com>2024-06-10 21:53:14 +1000
commit76216f91aee936bc57d7e1a1b2c2b63a03ce976a (patch)
tree363da8e607959f1bd39173a0c145e44fdfede436 /src/renderer/render.h
parenta4c2dfa6c1026859b5c8930b70dfe42317cf32ad (diff)
load pbr textures
Diffstat (limited to 'src/renderer/render.h')
-rw-r--r--src/renderer/render.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/renderer/render.h b/src/renderer/render.h
index 12c0ce4..35e2899 100644
--- a/src/renderer/render.h
+++ b/src/renderer/render.h
@@ -10,6 +10,7 @@
*/
#pragma once
+#include "file.h"
#include "ral_types.h"
#include "render_types.h"
@@ -64,6 +65,16 @@ texture_data texture_data_load(const char* path, bool invert_y);
*/
texture_handle texture_data_upload(texture_data data, bool free_on_upload);
+/** @brief load all of the texture for a PBR material and returns an unnamed material */
+material pbr_material_load(
+ char* albedo_path,
+ char* normal_path,
+ bool metal_roughness_combined,
+ char* metallic_path,
+ char* roughness_map,
+ char* ao_map
+);
+
buffer_handle buffer_create(const char* debug_name, u64 size);
bool buffer_destroy(buffer_handle buffer);
sampler_handle sampler_create();