Files
manual_slop/conductor/tracks/frosted_glass_20260313/plan.md
Ed_ 3113e4137b fix(shader): Disable frosted glass - OpenGL context issues
The frosted glass effect crashes with GLError 1282 'invalid operation'
when calling glDrawArrays. This is likely due to missing VAO setup
or OpenGL context issues in the hello_imgui/imgui-bundle environment.

DISABLED the effect by default to allow the app to run.
Feature needs proper OpenGL VAO setup to work.
2026-03-13 21:24:14 -04:00

1.5 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). [d9148ac]
  • Task: Implement: Develop the "Deep Sea" background shader and integrate it as the FBO source. [d85dc3a]
  • Task: Implement: Develop the 2-pass Gaussian blur shaders with a wide tap distribution. [c8b7fca]
  • 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. [9c2078a]
  • Task: Implement: Ensure the pipeline correctly handles high-DPI scaling (fb_scale) for internal FBO dimensions. [9c2078a]
  • 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. [926318f]
  • Task: Fix crash when display_size is invalid at startup. [db00fba]

Phase 3: GUI Integration & Screen-Space Sampling

  • Task: Implement: Update _render_frosted_background to perform normalized screen-space UV sampling. [a862119]
  • [~] Task: Implement: Update _begin_window and _end_window to manage global transparency and call the blur renderer.