From dfd95c6e29c25c3ad9acc3e63a790da866339015 Mon Sep 17 00:00:00 2001 From: quou Date: Sun, 29 Dec 2024 11:28:19 +1100 Subject: seperate framebuffers and renderpasses; depth buffering. --- model.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'model.cpp') diff --git a/model.cpp b/model.cpp index dac91e4..4c3e40f 100644 --- a/model.cpp +++ b/model.cpp @@ -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"), -- cgit v1.2.3-54-g00ecf