From 65d57b982485bcdf191a104cdbc24f77db637e59 Mon Sep 17 00:00:00 2001 From: Griffin <33357138+DGriffin91@users.noreply.github.com> Date: Wed, 11 Oct 2023 22:41:39 -0700 Subject: [PATCH] Fix tonemapping test patten (#10092) # Objective - Updating to wgpu 0.17 broke the tonemapping test patten ## Solution - Fix it --- assets/shaders/tonemapping_test_patterns.wgsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/shaders/tonemapping_test_patterns.wgsl b/assets/shaders/tonemapping_test_patterns.wgsl index c4a6d76568e9d..8c5ba99ec4cd5 100644 --- a/assets/shaders/tonemapping_test_patterns.wgsl +++ b/assets/shaders/tonemapping_test_patterns.wgsl @@ -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) -> vec3 { - var uv = uv; +fn color_sweep(uv_input: vec2) -> vec3 { + var uv = uv_input; let steps = 24.0; uv.y = uv.y * (1.0 + 1.0 / steps); let ratio = 2.0;