summaryrefslogtreecommitdiff
path: root/assets/final/shaders/common_uniforms.wgsl
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-08 22:44:37 +0100
committerskal <pascal.massimino@gmail.com>2026-02-08 22:44:37 +0100
commite6c2e5418d67e9b4d12d2da74a81fc57e1147865 (patch)
treeb5879186fb6717b59a62a4e341425fea3d4e398f /assets/final/shaders/common_uniforms.wgsl
parent1b89a26a750cc32725564a0c5186a437f372fd93 (diff)
feat(shaders): Standardize all shaders to use CommonUniforms
Define CommonUniforms struct with standard fields: - resolution: vec2<f32> - aspect_ratio: f32 - time: f32 - beat: f32 - audio_intensity: f32 Updated 14 shaders to use CommonUniforms: - Replaced width/height with resolution - Unified intensity/audio_peak → audio_intensity - Moved effect-specific params to EffectParams struct - visual_debug.wgsl now uses GlobalUniforms.view_proj All shaders now have consistent uniform interface. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Diffstat (limited to 'assets/final/shaders/common_uniforms.wgsl')
-rw-r--r--assets/final/shaders/common_uniforms.wgsl7
1 files changed, 7 insertions, 0 deletions
diff --git a/assets/final/shaders/common_uniforms.wgsl b/assets/final/shaders/common_uniforms.wgsl
index 4b5cf33..1e0e242 100644
--- a/assets/final/shaders/common_uniforms.wgsl
+++ b/assets/final/shaders/common_uniforms.wgsl
@@ -1,3 +1,10 @@
+struct CommonUniforms {
+ resolution: vec2<f32>,
+ aspect_ratio: f32,
+ time: f32,
+ beat: f32,
+ audio_intensity: f32,
+};
struct GlobalUniforms {
view_proj: mat4x4<f32>,
inv_view_proj: mat4x4<f32>,