// This file is part of the 64k demo project. // It implements a theme modulation effect that alternates between bright and dark. // Pattern changes every 2 seconds, so we alternate every 4 seconds (2 patterns). #pragma once #include "gpu/effect.h" class ThemeModulationEffect : public PostProcessEffect { public: ThemeModulationEffect(WGPUDevice device, WGPUQueue queue, WGPUTextureFormat format); void render(WGPURenderPassEncoder pass, float time, float beat, float intensity, float aspect_ratio) override; void update_bind_group(WGPUTextureView input_view) override; };