mirror of
https://github.com/bevyengine/bevy
synced 2025-02-17 22:48:38 +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_slope_scale: 0.0,
|
||||||
depth_bias_clamp: 0.0,
|
depth_bias_clamp: 0.0,
|
||||||
})
|
})
|
||||||
// .with_depth_stencil_state(wgpu::DepthStencilStateDescriptor {
|
.with_depth_stencil_state(wgpu::DepthStencilStateDescriptor {
|
||||||
// format: wgpu::TextureFormat::Depth32Float,
|
format: wgpu::TextureFormat::Depth32Float,
|
||||||
// depth_write_enabled: true,
|
depth_write_enabled: true,
|
||||||
// depth_compare: wgpu::CompareFunction::Less,
|
depth_compare: wgpu::CompareFunction::Less,
|
||||||
// stencil_front: wgpu::StencilStateFaceDescriptor::IGNORE,
|
stencil_front: wgpu::StencilStateFaceDescriptor::IGNORE,
|
||||||
// stencil_back: wgpu::StencilStateFaceDescriptor::IGNORE,
|
stencil_back: wgpu::StencilStateFaceDescriptor::IGNORE,
|
||||||
// stencil_read_mask: 0,
|
stencil_read_mask: 0,
|
||||||
// stencil_write_mask: 0,
|
stencil_write_mask: 0,
|
||||||
// })
|
})
|
||||||
.add_color_state(wgpu::ColorStateDescriptor {
|
.add_color_state(wgpu::ColorStateDescriptor {
|
||||||
format: wgpu::TextureFormat::Bgra8UnormSrgb,
|
format: wgpu::TextureFormat::Bgra8UnormSrgb,
|
||||||
color_blend: wgpu::BlendDescriptor::REPLACE,
|
color_blend: wgpu::BlendDescriptor::REPLACE,
|
||||||
|
|
Loading…
Add table
Reference in a new issue