From 24eba89bfab66b11013eba2c46c9bb17b140ee1f Mon Sep 17 00:00:00 2001 From: Quaternions Date: Wed, 30 Aug 2023 15:20:19 -0700 Subject: [PATCH] enable write depth buffer --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b843eae9..2df9b910 100644 --- a/src/main.rs +++ b/src/main.rs @@ -271,7 +271,7 @@ impl strafe_client::framework::Example for Skybox { }, depth_stencil: Some(wgpu::DepthStencilState { format: Self::DEPTH_FORMAT, - depth_write_enabled: false, + depth_write_enabled: true, depth_compare: wgpu::CompareFunction::LessEqual, stencil: wgpu::StencilState::default(), bias: wgpu::DepthBiasState::default(),