summaryrefslogtreecommitdiff
path: root/model.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-06 22:05:05 +1100
committerquou <quou@disroot.org>2025-01-06 22:07:10 +1100
commitce6efd3b28b5cec813c715a57a884199fa3b3ce1 (patch)
tree239e6e9b4b376f9b2cc294d564f69ae0e501e778 /model.hpp
parent1006ccf490c473447498a5c1a290e4dd9b55b7c2 (diff)
environment mapping
Diffstat (limited to 'model.hpp')
-rw-r--r--model.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/model.hpp b/model.hpp
index 7b8f4fb..f21c35e 100644
--- a/model.hpp
+++ b/model.hpp
@@ -26,6 +26,7 @@ struct Model;
struct Mesh {
int offset, vbo_offset, count;
int parent, mesh_binding, mvp_binding, mat_binding;
+ int env_cube_binding;
int mvp_binding_depth;
bool world_dirty;
m4f world, local;
@@ -99,6 +100,7 @@ struct Model_Instance {
Device* dev,
Arena* a,
Render_Pass& pass,
+ Texture_Id env_cubemap,
Sampler_Id sampler
);
};
@@ -118,6 +120,7 @@ struct Model_Scene {
Device* dev,
Arena* a,
Render_Pass& pass,
+ Texture_Id env_cubemap,
Sampler_Id sampler
);
};