From 766c0b0a41ddb4ac1fae68f720a9176a1b5f6070 Mon Sep 17 00:00:00 2001 From: skal Date: Mon, 16 Feb 2026 09:43:06 +0100 Subject: feat(sequence): add inline post-process functions for v2 - Create postprocess_inline.wgsl with 7 inline effect functions - Functions: vignette, flash, fade, theme, solarize, chroma_aberration, distort - Add example combined_postprocess_v2.wgsl showing usage - Register postprocess_inline snippet with ShaderComposer - Add to main and test workspace assets - All tests passing (36/36) Strategy: Simple effects become inline functions instead of separate classes. Complex effects (rotating_cube, hybrid_3d, particles) remain as TODO for v2 port. handoff(Claude): Inline functions ready, 7 simple effects consolidated --- workspaces/main/assets.txt | 1 + workspaces/test/assets.txt | 1 + 2 files changed, 2 insertions(+) (limited to 'workspaces') diff --git a/workspaces/main/assets.txt b/workspaces/main/assets.txt index 0558ae1..de96eab 100644 --- a/workspaces/main/assets.txt +++ b/workspaces/main/assets.txt @@ -81,6 +81,7 @@ SHADER_SCENE1, NONE, shaders/scene1.wgsl, "Scene1 effect shader" # --- Sequence v2 Shaders --- SHADER_SEQUENCE_V2_UNIFORMS, NONE, ../../common/shaders/sequence_v2_uniforms.wgsl, "Sequence v2 Uniforms Snippet" +SHADER_POSTPROCESS_INLINE, NONE, ../../common/shaders/postprocess_inline.wgsl, "Inline Post-Process Functions" SHADER_PASSTHROUGH_V2, NONE, ../../common/shaders/passthrough_v2.wgsl, "Passthrough Shader (v2)" SHADER_GAUSSIAN_BLUR_V2, NONE, ../../common/shaders/gaussian_blur_v2.wgsl, "Gaussian Blur Shader (v2)" SHADER_HEPTAGON_V2, NONE, ../../common/shaders/heptagon_v2.wgsl, "Heptagon Shader (v2)" diff --git a/workspaces/test/assets.txt b/workspaces/test/assets.txt index 5ed8af6..8550eca 100644 --- a/workspaces/test/assets.txt +++ b/workspaces/test/assets.txt @@ -70,6 +70,7 @@ MASKED_CUBE_SHADER, NONE, shaders/masked_cube.wgsl, "Masked cube shader" # --- Sequence v2 Shaders --- SHADER_SEQUENCE_V2_UNIFORMS, NONE, ../../common/shaders/sequence_v2_uniforms.wgsl, "Sequence v2 Uniforms Snippet" +SHADER_POSTPROCESS_INLINE, NONE, ../../common/shaders/postprocess_inline.wgsl, "Inline Post-Process Functions" SHADER_PASSTHROUGH_V2, NONE, ../../common/shaders/passthrough_v2.wgsl, "Passthrough Shader (v2)" SHADER_GAUSSIAN_BLUR_V2, NONE, ../../common/shaders/gaussian_blur_v2.wgsl, "Gaussian Blur Shader (v2)" SHADER_HEPTAGON_V2, NONE, ../../common/shaders/heptagon_v2.wgsl, "Heptagon Shader (v2)" -- cgit v1.2.3