Skip to content

Commit

Permalink
Actually propagate DEPTH_CLAMP_ORTHO flag to shader
Browse files Browse the repository at this point in the history
  • Loading branch information
geieredgar committed Feb 22, 2023
1 parent 4cd8039 commit 5b2c3fa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions crates/bevy_pbr/src/prepass/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 5b2c3fa

Please sign in to comment.