diff options
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"), |