diff options
Diffstat (limited to 'doc/EFFECT_WORKFLOW.md')
| -rw-r--r-- | doc/EFFECT_WORKFLOW.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/EFFECT_WORKFLOW.md b/doc/EFFECT_WORKFLOW.md index d68d148..e453b63 100644 --- a/doc/EFFECT_WORKFLOW.md +++ b/doc/EFFECT_WORKFLOW.md @@ -37,6 +37,16 @@ void render(WGPURenderPassEncoder pass, const CommonPostProcessUniforms& uniforms) override; ``` +**Uniforms Available:** +```cpp +uniforms.time; // Physical seconds (constant speed) +uniforms.beat_time; // Musical beats (bar synchronization) +uniforms.beat_phase; // Fractional beat 0.0-1.0 (smooth oscillation) +uniforms.audio_intensity; // Audio peak for beat sync +uniforms.resolution; // Screen dimensions +uniforms.aspect_ratio; // Width/height ratio +``` + **Template:** See `tools/shadertoy/template.*` or use `convert_shadertoy.py` ### 2. Add Shader to Assets |
