diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-08 17:45:05 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-08 17:45:05 +0100 |
| commit | 63c391e803318158f239c02df5f53244bfd6a074 (patch) | |
| tree | fbe4cea2f8cff3f92eb88596add87b16125c9912 | |
| parent | 4b23fdc63d422b31b6ad86d34218e7b66b462514 (diff) | |
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
| -rw-r--r-- | PROJECT_CONTEXT.md | 6 | ||||
| -rw-r--r-- | TODO.md | 6 |
2 files changed, 11 insertions, 1 deletions
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) @@ -7,6 +7,8 @@ This file tracks prioritized tasks with detailed attack plans. ## Recently Completed (February 8, 2026) - [x] **Shader Parametrization System**: Full uniform parameter system with .seq syntax support. FlashEffect now supports color/decay parameters with per-frame animation. See `COMPLETED.md` for details. +- [x] **ChromaAberrationEffect Parametrization**: Added offset_scale and angle parameters. Supports diagonal and vertical aberration modes via .seq syntax. +- [x] **GaussianBlurEffect Parametrization**: Added strength parameter. Replaces hardcoded blur radius with configurable value. --- @@ -256,9 +258,11 @@ This file tracks prioritized tasks with detailed attack plans. - **Priority**: Low (current workflow acceptable, but nice-to-have for rapid iteration) ### Visual Effects -- [ ] **Task #73: Extend Shader Parametrization**: Apply parametrization system to other effects +- [ ] **Task #73: Extend Shader Parametrization** [IN PROGRESS - 2/4 complete] - **Goal**: Extend uniform parameter system to ChromaAberrationEffect, GaussianBlurEffect, DistortEffect, SolarizeEffect - **Pattern**: Follow FlashEffect implementation (UniformHelper, params struct, .seq syntax) + - **Completed**: ChromaAberrationEffect (offset_scale, angle), GaussianBlurEffect (strength) + - **Remaining**: DistortEffect, SolarizeEffect - **Priority**: Medium (quality-of-life improvement for artists) - **Estimated Impact**: ~200-300 bytes per effect - [ ] **Task #52: Procedural SDF Font**: Minimal bezier/spline set for [A-Z, 0-9] and SDF rendering. |
