Fix sprite clipping at same depth (#385)
This commit is contained in:
parent
63fd4ae333
commit
e6a57bad25
@ -31,7 +31,7 @@ pub fn build_sprite_sheet_pipeline(shaders: &mut Assets<Shader>) -> PipelineDesc
|
|||||||
depth_stencil_state: Some(DepthStencilStateDescriptor {
|
depth_stencil_state: Some(DepthStencilStateDescriptor {
|
||||||
format: TextureFormat::Depth32Float,
|
format: TextureFormat::Depth32Float,
|
||||||
depth_write_enabled: true,
|
depth_write_enabled: true,
|
||||||
depth_compare: CompareFunction::Less,
|
depth_compare: CompareFunction::LessEqual,
|
||||||
stencil: StencilStateDescriptor {
|
stencil: StencilStateDescriptor {
|
||||||
front: StencilStateFaceDescriptor::IGNORE,
|
front: StencilStateFaceDescriptor::IGNORE,
|
||||||
back: StencilStateFaceDescriptor::IGNORE,
|
back: StencilStateFaceDescriptor::IGNORE,
|
||||||
@ -79,7 +79,7 @@ pub fn build_sprite_pipeline(shaders: &mut Assets<Shader>) -> PipelineDescriptor
|
|||||||
depth_stencil_state: Some(DepthStencilStateDescriptor {
|
depth_stencil_state: Some(DepthStencilStateDescriptor {
|
||||||
format: TextureFormat::Depth32Float,
|
format: TextureFormat::Depth32Float,
|
||||||
depth_write_enabled: true,
|
depth_write_enabled: true,
|
||||||
depth_compare: CompareFunction::Less,
|
depth_compare: CompareFunction::LessEqual,
|
||||||
stencil: StencilStateDescriptor {
|
stencil: StencilStateDescriptor {
|
||||||
front: StencilStateFaceDescriptor::IGNORE,
|
front: StencilStateFaceDescriptor::IGNORE,
|
||||||
back: StencilStateFaceDescriptor::IGNORE,
|
back: StencilStateFaceDescriptor::IGNORE,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user