Files
manual_slop/conductor/tracks/frosted_glass_20260313/plan.md
Ed_ d9148acb0c feat(shader): Add BlurPipeline class for frosted glass FBO setup
- Add BlurPipeline class with downsampled FBO support (scene, blur_a, blur_b)
- Implement 2-pass Gaussian blur shaders (horizontal + vertical)
- Add setup_fbos(), compile_blur_shaders(), prepare_blur(), cleanup() methods
- Add tests for BlurPipeline initialization, FBO setup, shader compilation, blur execution, and cleanup

Task: Phase 1, Task 1 of frosted_glass_20260313 track
2026-03-13 20:22:16 -04:00

1.7 KiB

Implementation Plan: Frosted Glass Background Effect (REPAIR - TRUE GPU)

Phase 1: Robust Shader & FBO Foundation

  • [~] Task: Implement: Create ShaderManager methods for downsampled FBO setup (scene, temp, blur).
  • Task: Implement: Develop the "Deep Sea" background shader and integrate it as the FBO source.
  • Task: Implement: Develop the 2-pass Gaussian blur shaders with a wide tap distribution.
  • Task: Conductor - User Manual Verification 'Phase 1: Robust Foundation' (Protocol in workflow.md)

Phase 2: High-Performance Blur Pipeline

  • Task: Implement: Create the prepare_global_blur method that renders the background and blurs it at 1/4 resolution.
  • Task: Implement: Ensure the pipeline correctly handles high-DPI scaling (fb_scale) for internal FBO dimensions.
  • Task: Conductor - User Manual Verification 'Phase 2: High-Performance Pipeline' (Protocol in workflow.md)

Phase 3: GUI Integration & Screen-Space Sampling

  • Task: Implement: Update _render_frosted_background to perform normalized screen-space UV sampling.
  • Task: Implement: Update _begin_window and _end_window to manage global transparency and call the blur renderer.
  • Task: Implement: Apply the new window wrappers to all primary panels in src/gui_2.py.
  • Task: Conductor - User Manual Verification 'Phase 3: GUI Integration' (Protocol in workflow.md)

Phase 4: UI Tuning & Persistence

  • Task: Implement: Add "Frosted Glass" tuning sliders to the Shader Editor.
  • Task: Implement: Update src/theme_2.py to persist all frosted glass settings.
  • Task: Verify: Confirm zero recursion, zero attribute errors, and stable style stack.
  • Task: Conductor - User Manual Verification 'Phase 4: Final Polishing' (Protocol in workflow.md)