Files
manual_slop/conductor/tracks/frosted_glass_20260313/plan.md

2.1 KiB

Implementation Plan: Frosted Glass Background Effect

Phase 1: Shader Development & Integration

  • Task: Audit src/shader_manager.py to identify existing background/post-process integration points. [1328bc1]
  • Task: Write Tests: Verify ShaderManager can compile and bind a multi-pass blur shader. [1328bc1]
  • Task: Implement: Add FrostedGlassShader (GLSL) to src/shader_manager.py. [1328bc1]
  • Task: Implement: Integrate the blur shader into the ShaderManager lifecycle. [1328bc1]
  • [~] Task: Conductor - User Manual Verification 'Phase 1: Shader Development & Integration' (Protocol in workflow.md)

Phase 2: Framebuffer Capture Pipeline

  • Task: Write Tests: Verify the FBO capture mechanism correctly samples the back buffer and stores it in a texture.
  • Task: Implement: Update src/shader_manager.py or src/gui_2.py to handle "pre-rendering" of the background into a texture for blurring.
  • Task: Implement: Ensure the blurred texture is updated every frame or on window move events.
  • Task: Conductor - User Manual Verification 'Phase 2: Framebuffer Capture Pipeline' (Protocol in workflow.md)

Phase 3: GUI Integration & Rendering

  • Task: Write Tests: Verify that a mocked ImGui window successfully calls the frosted glass rendering logic.
  • Task: Implement: Create a _render_frosted_background(self, pos, size) helper in src/gui_2.py.
  • Task: Implement: Update panel rendering loops (e.g. _gui_func) to inject the frosted background before calling imgui.begin() for major panels.
  • Task: Conductor - User Manual Verification 'Phase 3: GUI Integration & Rendering' (Protocol in workflow.md)

Phase 4: UI Controls & Configuration

  • Task: Write Tests: Verify that modifying blur uniforms via the Live Editor updates the shader state.
  • Task: Implement: Add "Frosted Glass" sliders (Blur, Tint, Opacity) to the Shader Editor in src/gui_2.py.
  • Task: Implement: Update src/theme.py to parse and store frosted glass settings from config.toml.
  • Task: Conductor - User Manual Verification 'Phase 4: UI Controls & Configuration' (Protocol in workflow.md)