diff options
author | quou <quou@disroot.org> | 2024-12-29 11:28:19 +1100 |
---|---|---|
committer | quou <quou@disroot.org> | 2024-12-29 11:28:19 +1100 |
commit | dfd95c6e29c25c3ad9acc3e63a790da866339015 (patch) | |
tree | 07a96430f287a4f5303149b97e4adde2e1f67af0 /model.cpp | |
parent | 82c03019867ed57d35932e5eb015c7e77f8bf1ea (diff) |
seperate framebuffers and renderpasses; depth buffering.
Diffstat (limited to 'model.cpp')
-rw-r--r-- | model.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -127,14 +127,15 @@ void Model::render( .offset = 0 }; Draw draw{}; - Pipeline_Builder pb(a); + Pipeline_Builder pb(a, dev); draw.verts = vbb; draw.inds = ibb; draw.vertex_count = mesh.count; draw.instance_count = 1; draw.first_vertex = mesh.offset; draw.vertex_offset = mesh.vbo_offset; - pb.begin(dev); + pb.begin(); + pb.depth(true, true, Depth_Mode::less); pb.shader(mesh.shader); pb.cbuffer( shader.descriptor_binding("config_buffer"), |