summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorskal <pascal.massimino@gmail.com>2026-02-08 17:45:05 +0100
committerskal <pascal.massimino@gmail.com>2026-02-08 17:45:05 +0100
commit63c391e803318158f239c02df5f53244bfd6a074 (patch)
treefbe4cea2f8cff3f92eb88596add87b16125c9912
parent4b23fdc63d422b31b6ad86d34218e7b66b462514 (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.md6
-rw-r--r--TODO.md6
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)
diff --git a/TODO.md b/TODO.md
index 0d789e3..8b9ac82 100644
--- a/TODO.md
+++ b/TODO.md
@@ -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.