From 63c391e803318158f239c02df5f53244bfd6a074 Mon Sep 17 00:00:00 2001 From: skal Date: Sun, 8 Feb 2026 17:45:05 +0100 Subject: docs: Update documentation for shader parametrization progress - Updated TODO.md: Task #73 marked as 2/4 complete - Updated PROJECT_CONTEXT.md: Added ChromaAberration and GaussianBlur completions - Noted remaining effects: DistortEffect, SolarizeEffect --- PROJECT_CONTEXT.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'PROJECT_CONTEXT.md') diff --git a/PROJECT_CONTEXT.md b/PROJECT_CONTEXT.md index e28319d..2e0a561 100644 --- a/PROJECT_CONTEXT.md +++ b/PROJECT_CONTEXT.md @@ -92,6 +92,12 @@ Style: - **Shader Parametrization System** (February 8) - Full uniform parameter system with .seq syntax support. FlashEffect now supports dynamic color/decay parameters computed per-frame. Critical WGSL alignment bugfix (vec3 = 16-byte aligned). Size: ~400-500 bytes. See `doc/COMPLETED.md` for details. +- **Extended Shader Parametrization** (February 8) - Task #73 (2/4 effects complete): + - ChromaAberrationEffect: Added offset_scale and angle parameters (diagonal/vertical aberration modes) + - GaussianBlurEffect: Added strength parameter (configurable blur radius) + - Both effects follow FlashEffect pattern (UniformHelper, params struct, .seq syntax) + - Size: ~200-300 bytes per effect + - **WGSL Shader Composability** - Extracted common utilities to `math/common_utils.wgsl`: - `transform_normal()` - 2 call sites (renderer_3d, mesh_render) - `spherical_uv()` / `spherical_uv_from_dir()` - 8 call sites (renderer_3d, skybox) -- cgit v1.2.3