From 08d4e7d9971fcfc56cb2ffbafcb75629439c05c8 Mon Sep 17 00:00:00 2001 From: Quaternions Date: Thu, 26 Oct 2023 19:07:44 -0700 Subject: [PATCH] back face culling --- src/graphics.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/graphics.rs b/src/graphics.rs index 7b2f8b9..4db4601 100644 --- a/src/graphics.rs +++ b/src/graphics.rs @@ -802,6 +802,7 @@ impl GraphicsState{ }), primitive: wgpu::PrimitiveState { front_face: wgpu::FrontFace::Cw, + cull_mode:Some(wgpu::Face::Front), ..Default::default() }, depth_stencil: Some(wgpu::DepthStencilState {