enable write depth buffer

This commit is contained in:
Quaternions 2023-08-30 15:20:19 -07:00
parent 72a6e36429
commit 24eba89bfa

View File

@ -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(),