summaryrefslogtreecommitdiff
path: root/model.cpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-30 10:25:26 +1100
committerquou <quou@disroot.org>2024-12-30 10:25:26 +1100
commitb27cc55aa631c52dae4a1a9c8c6888fc063fe022 (patch)
treeefdb66a4c4e8a223f77da9eab100c21c468f1a2a /model.cpp
parent693a133cb1a0356f3257f2879be4e23cbb67cbe3 (diff)
backface culling
Diffstat (limited to 'model.cpp')
-rw-r--r--model.cpp1
1 files changed, 1 insertions, 0 deletions
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,