Fix tonemapping test patten (#10092)

# Objective

- Updating to wgpu 0.17 broke the tonemapping test patten

## Solution

- Fix it
This commit is contained in:
Griffin 2023-10-11 22:41:39 -07:00 committed by GitHub
parent be8ff5d0e1
commit 65d57b9824
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;