mirror of
https://github.com/TheBozos/BozoEngine.git
synced 2026-12-01 07:38:19 -10:00
When a player installs ReShade (its opengl32.dll beside the executable), the program registers as one of its add-ons and has it render its effects inside present(), after the 3D picture and before the HUD and menus, so a colour grade, depth of field or ambient occlusion no longer goes over the 2D. The F2 / F3 panels stay clear too. Without ReShade nothing changes; BOZO_RESHADE_AT_PRESENT=1 keeps ReShade's own pass over everything. - Renderer::setBeforeOverlay: a hook present() calls when it draws to the window, between the 3D and the 2D, with the window's size; present() binds its own state again afterwards. - app/reshade_bridge: registration after the window is made (ReShade's DLL loads with it) and before the GL context; the effects run on a texture of the window's size, copied upside down from and back to the window, as ReShade's own OpenGL pass does (its effects expect the top row first). - ReShade 6.8.0's API headers (BSD-3-Clause) in app/reshade/. - MinGW and ReShade's MSVC return structs from methods differently, so no API method returning a struct is called; views are built as ReShade's OpenGL backend makes them. Co-Authored-By: Claude Opus 5.5 <[email protected]>