Skip to content

Commit

Permalink
Fix tonemapping test patten (bevyengine#10092)
Browse files Browse the repository at this point in the history
# Objective

- Updating to wgpu 0.17 broke the tonemapping test patten

## Solution

- Fix it
  • Loading branch information
DGriffin91 authored Oct 12, 2023
1 parent be8ff5d commit 65d57b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions assets/shaders/tonemapping_test_patterns.wgsl
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@

// Sweep across hues on y axis with value from 0.0 to +15EV across x axis
// quantized into 24 steps for both axis.
fn color_sweep(uv: vec2<f32>) -> vec3<f32> {
var uv = uv;
fn color_sweep(uv_input: vec2<f32>) -> vec3<f32> {
var uv = uv_input;
let steps = 24.0;
uv.y = uv.y * (1.0 + 1.0 / steps);
let ratio = 2.0;
Expand Down

0 comments on commit 65d57b9

Please sign in to comment.