summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-16 09:43:06 +0100
committerskal <pascal.massimino@gmail.com>2026-02-16 09:43:06 +0100
commit766c0b0a41ddb4ac1fae68f720a9176a1b5f6070 (patch)
treeb8530354de7133c7828d177889a6a4eb1d0570ba /src
parent04938fc4a3335e1459e5fb23d0d091fd2a40c296 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/gpu/shaders.cc2
1 files changed, 2 insertions, 0 deletions
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);