From 9f56e2a61404393f80286996e4a3a87a5dae7687 Mon Sep 17 00:00:00 2001 From: Camden Dixie O'Brien Date: Mon, 29 Sep 2025 14:26:17 +0100 Subject: [PATCH] Enable back-face culling --- gpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gpu.c b/gpu.c index c794e18..8e25373 100644 --- a/gpu.c +++ b/gpu.c @@ -537,7 +537,8 @@ void gpu_init(gpu_ctx_t *ctx, const gpu_config_t *config, model_t model) .rasterizerDiscardEnable = VK_FALSE, .polygonMode = VK_POLYGON_MODE_FILL, .lineWidth = 1.0f, - .cullMode = VK_CULL_MODE_NONE, + .cullMode = VK_CULL_MODE_BACK_BIT, + .frontFace = VK_FRONT_FACE_CLOCKWISE, }; // Populate multisampling configuration