Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
IceSentry committed Feb 20, 2023
1 parent 2a55f5b commit 7ce8000
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions crates/bevy_pbr/src/render/mesh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ impl FromWorld for MeshPipeline {

if cfg!(not(feature = "webgl")) || (cfg!(feature = "webgl") && !multisampled) {
entries.extend_from_slice(&prepass::get_bind_group_layout_entries(
[11, 12],
[16, 17],
multisampled,
));
}
Expand Down Expand Up @@ -1047,14 +1047,15 @@ pub fn queue_mesh_view_bind_groups(
let tonemapping_luts =
get_lut_bindings(&images, &tonemapping_luts, tonemapping, [14, 15]);
entries.extend_from_slice(&tonemapping_luts);

// When using WebGL, we can't have a depth texture with multisampling
if cfg!(not(feature = "webgl")) || (cfg!(feature = "webgl") && msaa.samples() == 1) {
entries.extend_from_slice(&prepass::get_bindings(
prepass_textures,
&mut fallback_images,
&mut fallback_depths,
&msaa,
[11, 12],
[16, 17],
));
}

Expand Down

0 comments on commit 7ce8000

Please sign in to comment.