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 --- src/gpu/shaders.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/gpu/shaders.cc b/src/gpu/shaders.cc index d768cef..4f24705 100644 --- a/src/gpu/shaders.cc +++ b/src/gpu/shaders.cc @@ -33,6 +33,8 @@ void InitShaderComposer() { register_if_exists("common_uniforms", AssetId::ASSET_SHADER_COMMON_UNIFORMS); register_if_exists("sequence_v2_uniforms", AssetId::ASSET_SHADER_SEQUENCE_V2_UNIFORMS); + register_if_exists("postprocess_inline", + AssetId::ASSET_SHADER_POSTPROCESS_INLINE); register_if_exists("camera_common", AssetId::ASSET_SHADER_CAMERA_COMMON); register_if_exists("math/sdf_shapes", AssetId::ASSET_SHADER_MATH_SDF_SHAPES); register_if_exists("math/sdf_utils", AssetId::ASSET_SHADER_MATH_SDF_UTILS); -- cgit v1.2.3