diff options
Diffstat (limited to 'workspaces/main/shaders/flash.wgsl')
| -rw-r--r-- | workspaces/main/shaders/flash.wgsl | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/workspaces/main/shaders/flash.wgsl b/workspaces/main/shaders/flash.wgsl deleted file mode 100644 index 379086e..0000000 --- a/workspaces/main/shaders/flash.wgsl +++ /dev/null @@ -1,27 +0,0 @@ -// Flash shader for visual sync testing -// Pulses white on beat -#include "sequence_uniforms" - -@group(0) @binding(2) var<uniform> uniforms: UniformsSequenceParams; - -struct VertexOutput { - @builtin(position) position: vec4f, - @location(0) uv: vec2f, -}; - -@vertex fn vs_main(@builtin(vertex_index) vid: u32) -> VertexOutput { - var out: VertexOutput; - let x = f32((vid & 1u) << 1u); - let y = f32((vid & 2u)); - out.position = vec4f(x * 2.0 - 1.0, 1.0 - y * 2.0, 0.0, 1.0); - out.uv = vec2f(x, y); - return out; -} - -@fragment fn fs_main(in: VertexOutput) -> @location(0) vec4f { - // Strong flash on beat, fades quickly - let intensity = pow(1.0 - uniforms.beat_phase, 4.0); - // Add audio intensity for extra punch - let final_intensity = intensity * (1.0 + uniforms.audio_intensity * 0.5); - return vec4f(final_intensity, final_intensity, final_intensity, 1.0); -} |
