Skip to content

Commit

Permalink
Build fix
Browse files Browse the repository at this point in the history
  • Loading branch information
djeedai committed Dec 9, 2024
1 parent 7bbe87d commit c0b862a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/render/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1179,6 +1179,7 @@ impl SpecializedRenderPipeline for ParticlesRenderPipeline {
shader_defs.push("RIBBONS".into());
}

#[cfg(feature = "2d")]
let depth_stencil_2d = DepthStencilState {
format: CORE_2D_DEPTH_FORMAT,
// Use depth buffer with alpha-masked particles, not with transparent ones
Expand All @@ -1188,6 +1189,8 @@ impl SpecializedRenderPipeline for ParticlesRenderPipeline {
stencil: StencilState::default(),
bias: DepthBiasState::default(),
};

#[cfg(feature = "3d")]
let depth_stencil_3d = DepthStencilState {
format: CORE_3D_DEPTH_FORMAT,
// Use depth buffer with alpha-masked or opaque particles, not
Expand Down

0 comments on commit c0b862a

Please sign in to comment.