mirror of
https://github.com/bevyengine/bevy
synced 2024-11-10 07:04:33 +00:00
Fix sprite clipping at same depth (#385)
This commit is contained in:
parent
63fd4ae333
commit
e6a57bad25
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ pub fn build_sprite_sheet_pipeline(shaders: &mut Assets<Shader>) -> PipelineDesc
|
|||
depth_stencil_state: Some(DepthStencilStateDescriptor {
|
||||
format: TextureFormat::Depth32Float,
|
||||
depth_write_enabled: true,
|
||||
depth_compare: CompareFunction::Less,
|
||||
depth_compare: CompareFunction::LessEqual,
|
||||
stencil: StencilStateDescriptor {
|
||||
front: StencilStateFaceDescriptor::IGNORE,
|
||||
back: StencilStateFaceDescriptor::IGNORE,
|
||||
|
@ -79,7 +79,7 @@ pub fn build_sprite_pipeline(shaders: &mut Assets<Shader>) -> PipelineDescriptor
|
|||
depth_stencil_state: Some(DepthStencilStateDescriptor {
|
||||
format: TextureFormat::Depth32Float,
|
||||
depth_write_enabled: true,
|
||||
depth_compare: CompareFunction::Less,
|
||||
depth_compare: CompareFunction::LessEqual,
|
||||
stencil: StencilStateDescriptor {
|
||||
front: StencilStateFaceDescriptor::IGNORE,
|
||||
back: StencilStateFaceDescriptor::IGNORE,
|
||||
|
|
Loading…
Reference in a new issue