From 8ce27b7e15f0fc65c8ee78950c7501660b936178 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 14 Feb 2026 15:14:25 +0100 Subject: style: Apply clang-format to codebase --- src/effects/theme_modulation_effect.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/effects/theme_modulation_effect.cc') diff --git a/src/effects/theme_modulation_effect.cc b/src/effects/theme_modulation_effect.cc index 1c81d79..82bfeb8 100644 --- a/src/effects/theme_modulation_effect.cc +++ b/src/effects/theme_modulation_effect.cc @@ -10,7 +10,8 @@ struct ThemeModulationParams { float theme_brightness; float _pad[3]; }; -static_assert(sizeof(ThemeModulationParams) == 16, "ThemeModulationParams must be 16 bytes for WGSL alignment"); +static_assert(sizeof(ThemeModulationParams) == 16, + "ThemeModulationParams must be 16 bytes for WGSL alignment"); ThemeModulationEffect::ThemeModulationEffect(const GpuContext& ctx) : PostProcessEffect(ctx) { @@ -82,8 +83,8 @@ void ThemeModulationEffect::render(WGPURenderPassEncoder pass, // Alternate between bright and dark every 4 seconds (2 pattern changes) // Music patterns change every 2 seconds at 120 BPM - float cycle_time = fmodf(uniforms.time, 8.0f); // 8 second cycle (4 patterns) - bool is_dark_section = (cycle_time >= 4.0f); // Dark for second half + float cycle_time = fmodf(uniforms.time, 8.0f); // 8 second cycle (4 patterns) + bool is_dark_section = (cycle_time >= 4.0f); // Dark for second half // Smooth transition between themes using a sine wave float transition = -- cgit v1.2.3