diff --git a/crates/bevy_pbr/src/prepass/mod.rs b/crates/bevy_pbr/src/prepass/mod.rs index f4f75f7a04b996..87b47172168181 100644 --- a/crates/bevy_pbr/src/prepass/mod.rs +++ b/crates/bevy_pbr/src/prepass/mod.rs @@ -214,6 +214,9 @@ where "MAX_CASCADES_PER_LIGHT".to_string(), MAX_CASCADES_PER_LIGHT as i32, )); + if key.mesh_key.contains(MeshPipelineKey::DEPTH_CLAMP_ORTHO) { + shader_defs.push("DEPTH_CLAMP_ORTHO".into()); + } if layout.contains(Mesh::ATTRIBUTE_UV_0) { shader_defs.push("VERTEX_UVS".into());