Files
OneCAD-Draft/src/scene/pipeline
Hakan SevenandClaude Opus 4.7 dac835fe33 fix(viewport): use premultiplied blend on surface blit
Geometry passes draw with standard `SrcAlpha / 1-SrcAlpha` into a
transparent MSAA target, so AA-edge fragments sit as `(rgb * a, a)` in
the resolve texture. The previous straight-alpha blit then multiplied
those by `a` a second time, darkening thin lines and curves over the
transparent background. `PREMULTIPLIED_ALPHA_BLENDING` matches what is
actually in the resolve texture and renders edges at full intensity
while still leaving fully-transparent pixels untouched on the surface.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
2026-05-28 10:29:05 +03:00
..