2.2 KiB
2.2 KiB
Implementation Plan: Frosted Glass Background Effect
Phase 1: Shader Development & Integration [checkpoint: 55f3bd8]
- Task: Audit
src/shader_manager.pyto identify existing background/post-process integration points. [1328bc1] - Task: Write Tests: Verify
ShaderManagercan compile and bind a multi-pass blur shader. [1328bc1] - Task: Implement: Add
FrostedGlassShader(GLSL) tosrc/shader_manager.py. [1328bc1] - Task: Implement: Integrate the blur shader into the
ShaderManagerlifecycle. [1328bc1] - Task: Conductor - User Manual Verification 'Phase 1: Shader Development & Integration' (Protocol in workflow.md) [
55f3bd8]
Phase 2: Framebuffer Capture Pipeline [checkpoint: e9b7875]
- Task: Write Tests: Verify the FBO capture mechanism correctly samples the back buffer and stores it in a texture. [
f297e7a] - Task: Implement: Update
src/shader_manager.pyorsrc/gui_2.pyto handle "pre-rendering" of the background into a texture for blurring. [f297e7a] - Task: Implement: Ensure the blurred texture is updated every frame or on window move events. [
f297e7a] - Task: Conductor - User Manual Verification 'Phase 2: Framebuffer Capture Pipeline' (Protocol in workflow.md) [
e9b7875]
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 insrc/gui_2.py. - Task: Implement: Update panel rendering loops (e.g.
_gui_func) to inject the frosted background before callingimgui.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.pyto parse and store frosted glass settings fromconfig.toml. - Task: Conductor - User Manual Verification 'Phase 4: UI Controls & Configuration' (Protocol in workflow.md)