Skip to content

Commit

Permalink
Use tone mapping in array_texture example (bevyengine#5131)
Browse files Browse the repository at this point in the history
# Objective

The array_texture example does not currently apply tone mapping:
![no_tonemapping](https://user-images.githubusercontent.com/33357138/176327061-4c404b62-d260-458d-b3cb-4671bd8c2735.PNG)

## Solution

Use tone mapping:
![with_tonemapping](https://user-images.githubusercontent.com/33357138/176327092-7aaeac85-0d95-4c7d-9d91-7fe46bed32c3.PNG)
  • Loading branch information
DGriffin91 committed Jun 29, 2022
1 parent 7a42f7b commit 7d55414
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion assets/shaders/array_texture.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -59,5 +59,5 @@ fn fragment(in: FragmentInput) -> [[location(0)]] vec4<f32> {
);
pbr_input.V = calculate_view(in.world_position, pbr_input.is_orthographic);

return pbr(pbr_input);
return tone_mapping(pbr(pbr_input));
}

0 comments on commit 7d55414

Please sign in to comment.