From b27cc55aa631c52dae4a1a9c8c6888fc063fe022 Mon Sep 17 00:00:00 2001 From: quou Date: Mon, 30 Dec 2024 10:25:26 +1100 Subject: backface culling --- model.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'model.cpp') diff --git a/model.cpp b/model.cpp index 3b0e90f..2b6f1f4 100644 --- a/model.cpp +++ b/model.cpp @@ -209,6 +209,7 @@ void Model::render( pb.depth(true, true, Depth_Mode::less); else pb.depth(true, false, Depth_Mode::equal); + pb.cull(Cull_Mode::back); pb.shader(mesh.shader); pb.cbuffer( mesh.mvp_binding, -- cgit v1.2.3-54-g00ecf