forked from StrafesNET/strafe-client
enable write depth buffer
This commit is contained in:
parent
72a6e36429
commit
24eba89bfa
@ -271,7 +271,7 @@ impl strafe_client::framework::Example for Skybox {
|
|||||||
},
|
},
|
||||||
depth_stencil: Some(wgpu::DepthStencilState {
|
depth_stencil: Some(wgpu::DepthStencilState {
|
||||||
format: Self::DEPTH_FORMAT,
|
format: Self::DEPTH_FORMAT,
|
||||||
depth_write_enabled: false,
|
depth_write_enabled: true,
|
||||||
depth_compare: wgpu::CompareFunction::LessEqual,
|
depth_compare: wgpu::CompareFunction::LessEqual,
|
||||||
stencil: wgpu::StencilState::default(),
|
stencil: wgpu::StencilState::default(),
|
||||||
bias: wgpu::DepthBiasState::default(),
|
bias: wgpu::DepthBiasState::default(),
|
||||||
|
Loading…
Reference in New Issue
Block a user