File tree 1 file changed +2
-2
lines changed
crates/bevy_pbr/src/render
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -635,9 +635,9 @@ fn fragment(in: FragmentInput) -> [[location(0)]] vec4<f32> {
635
635
let cluster_overlay_alpha = 0.1 ;
636
636
let max_light_complexity_per_cluster = 64.0 ;
637
637
output_color . r = (1.0 - cluster_overlay_alpha ) * output_color . r
638
- + cluster_overlay_alpha * smoothStep (0.0 , max_light_complexity_per_cluster , f32 (offset_and_count . count ));
638
+ + cluster_overlay_alpha * smoothStep (0.0 , max_light_complexity_per_cluster , f32 (offset_and_count [ 1 ] ));
639
639
output_color . g = (1.0 - cluster_overlay_alpha ) * output_color . g
640
- + cluster_overlay_alpha * (1.0 - smoothStep (0.0 , max_light_complexity_per_cluster , f32 (offset_and_count . count )));
640
+ + cluster_overlay_alpha * (1.0 - smoothStep (0.0 , max_light_complexity_per_cluster , f32 (offset_and_count [ 1 ] )));
641
641
#endif // CLUSTERED_FORWARD_DEBUG_CLUSTER_LIGHT_COMPLEXITY
642
642
#ifdef CLUSTERED_FORWARD_DEBUG_CLUSTER_COHERENCY
643
643
// NOTE: Visualizes the cluster to which the fragment belongs
You can’t perform that action at this time.
0 commit comments