mirror of
https://github.com/bevyengine/bevy
synced 2024-11-24 21:53:07 +00:00
fix forward flat depth
This commit is contained in:
parent
aab7034e99
commit
be1a878943
1 changed files with 9 additions and 9 deletions
|
@ -75,15 +75,15 @@ impl ForwardFlatPipelineBuilder for RenderGraphBuilder {
|
|||
depth_bias_slope_scale: 0.0,
|
||||
depth_bias_clamp: 0.0,
|
||||
})
|
||||
// .with_depth_stencil_state(wgpu::DepthStencilStateDescriptor {
|
||||
// format: wgpu::TextureFormat::Depth32Float,
|
||||
// depth_write_enabled: true,
|
||||
// depth_compare: wgpu::CompareFunction::Less,
|
||||
// stencil_front: wgpu::StencilStateFaceDescriptor::IGNORE,
|
||||
// stencil_back: wgpu::StencilStateFaceDescriptor::IGNORE,
|
||||
// stencil_read_mask: 0,
|
||||
// stencil_write_mask: 0,
|
||||
// })
|
||||
.with_depth_stencil_state(wgpu::DepthStencilStateDescriptor {
|
||||
format: wgpu::TextureFormat::Depth32Float,
|
||||
depth_write_enabled: true,
|
||||
depth_compare: wgpu::CompareFunction::Less,
|
||||
stencil_front: wgpu::StencilStateFaceDescriptor::IGNORE,
|
||||
stencil_back: wgpu::StencilStateFaceDescriptor::IGNORE,
|
||||
stencil_read_mask: 0,
|
||||
stencil_write_mask: 0,
|
||||
})
|
||||
.add_color_state(wgpu::ColorStateDescriptor {
|
||||
format: wgpu::TextureFormat::Bgra8UnormSrgb,
|
||||
color_blend: wgpu::BlendDescriptor::REPLACE,
|
||||
|
|
Loading…
Reference in a new issue