Skip to content

Commit

Permalink
Merge branch 'main' into fix-reflect-warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
alice-i-cecile authored Jan 27, 2024
2 parents 5289742 + 45e920c commit 311c0c8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion crates/bevy_pbr/src/light_probe/environment_map.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,12 @@ fn compute_radiances(
if (all(abs(probe_space_pos) <= vec3(0.5))) {
cubemap_index = reflection_probe.cubemap_index;
intensity = reflection_probe.intensity;
break;
// TODO: Workaround for ICE in DXC https://github.com/microsoft/DirectXShaderCompiler/issues/6183
// This works because it's the last thing that happens in the for loop, and will break as soon as it
// goes back to the top of the loop.
// We can't use `break` here because of the ICE.
// break;
reflection_probe_index = light_probes.reflection_probe_count;
}
}

Expand Down

0 comments on commit 311c0c8

Please sign in to comment.