Less -> LessEqual
This commit is contained in:
parent
9598128b6a
commit
86e1521128
2 changed files with 5 additions and 5 deletions
|
@ -93,7 +93,7 @@ impl RenderPass {
|
||||||
depth_stencil: depth_format.map(|format| wgpu::DepthStencilState {
|
depth_stencil: depth_format.map(|format| wgpu::DepthStencilState {
|
||||||
format,
|
format,
|
||||||
depth_write_enabled: true,
|
depth_write_enabled: true,
|
||||||
depth_compare: wgpu::CompareFunction::Less,
|
depth_compare: wgpu::CompareFunction::LessEqual,
|
||||||
stencil: wgpu::StencilState::default(),
|
stencil: wgpu::StencilState::default(),
|
||||||
bias: wgpu::DepthBiasState::default(),
|
bias: wgpu::DepthBiasState::default(),
|
||||||
}),
|
}),
|
||||||
|
|
|
@ -138,7 +138,7 @@ impl State {
|
||||||
&device,
|
&device,
|
||||||
&config,
|
&config,
|
||||||
"depth_texture",
|
"depth_texture",
|
||||||
Some(wgpu::CompareFunction::Less),
|
Some(wgpu::CompareFunction::LessEqual),
|
||||||
1,
|
1,
|
||||||
wgpu::TextureUsages::RENDER_ATTACHMENT,
|
wgpu::TextureUsages::RENDER_ATTACHMENT,
|
||||||
);
|
);
|
||||||
|
@ -147,7 +147,7 @@ impl State {
|
||||||
&device,
|
&device,
|
||||||
&config,
|
&config,
|
||||||
"light_depth_texture",
|
"light_depth_texture",
|
||||||
Some(wgpu::CompareFunction::Less),
|
Some(wgpu::CompareFunction::LessEqual),
|
||||||
6,
|
6,
|
||||||
wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::TEXTURE_BINDING,
|
wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::TEXTURE_BINDING,
|
||||||
);
|
);
|
||||||
|
@ -446,7 +446,7 @@ impl State {
|
||||||
&self.device,
|
&self.device,
|
||||||
&self.config,
|
&self.config,
|
||||||
"depth_texture",
|
"depth_texture",
|
||||||
Some(wgpu::CompareFunction::Less),
|
Some(wgpu::CompareFunction::LessEqual),
|
||||||
1,
|
1,
|
||||||
wgpu::TextureUsages::RENDER_ATTACHMENT,
|
wgpu::TextureUsages::RENDER_ATTACHMENT,
|
||||||
);
|
);
|
||||||
|
@ -456,7 +456,7 @@ impl State {
|
||||||
&self.device,
|
&self.device,
|
||||||
&self.config,
|
&self.config,
|
||||||
"light_depth_texture",
|
"light_depth_texture",
|
||||||
Some(wgpu::CompareFunction::Less),
|
Some(wgpu::CompareFunction::LessEqual),
|
||||||
6,
|
6,
|
||||||
wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::TEXTURE_BINDING,
|
wgpu::TextureUsages::RENDER_ATTACHMENT | wgpu::TextureUsages::TEXTURE_BINDING,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue