summaryrefslogtreecommitdiff
path: root/model.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-02 15:42:05 +1100
committerquou <quou@disroot.org>2025-01-02 15:42:05 +1100
commitb03109dbb087bd441c0e3905753f3dd97d44d7b8 (patch)
tree9f4372b2aa643c29cdd338b8776c02d175b4a881 /model.hpp
parent6d4b56258b89ba12bec5e329b81de62284c47ce1 (diff)
Simpler depth prepass shader
Diffstat (limited to 'model.hpp')
-rw-r--r--model.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/model.hpp b/model.hpp
index 53fb0fb..7b8f4fb 100644
--- a/model.hpp
+++ b/model.hpp
@@ -26,9 +26,10 @@ struct Model;
struct Mesh {
int offset, vbo_offset, count;
int parent, mesh_binding, mvp_binding, mat_binding;
+ int mvp_binding_depth;
bool world_dirty;
m4f world, local;
- Shader_Id shader;
+ Shader_Id shader, depth_shader;
Material* material;
const m4f& get_world(Model& m);
};