You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The OBS Browser Source should correctly render half transparent colors without darkening colors or introducing artifacts around edges.
Current Behavior
Half transparent pixels render darkened than actual should, and black artifacts are present around text (due anti aliasing, which produce half transparency)
Steps to Reproduce
Add white color background
Add this html page like Browser source with default CSS preset (transparent body background)
Operating System Info
Other
Other OS
macOS 15, Windows 10
OBS Studio Version
Other
OBS Studio Version (Other)
31.0.0, 30.2.3
OBS Studio Log URL
https://obsproject.com/logs/ZJw0Cy9mkJNEyV3i
OBS Studio Crash Log URL
No response
Expected Behavior
The OBS Browser Source should correctly render half transparent colors without darkening colors or introducing artifacts around edges.
Current Behavior
Half transparent pixels render darkened than actual should, and black artifacts are present around text (due anti aliasing, which produce half transparency)
Steps to Reproduce
Browser
source with defaultCSS
preset (transparent body background)Blending Method
betweenDefault
andSRBG Off
and see differencesAnything else we should know?
This artifacts looks like
premultiplied RGBA
rendering likenon premultiplied
I am check rendering mechanism, and it correctly set blending mode for premultiplied renderer
obs-browser/obs-browser-source.cpp
Line 646 in 082a0a2
I try to play with srgb texture binding, and if set
gs_enable_framebuffer_srgb(false);
andgs_effect_set_texture(image, draw_texture)
here:obs-browser/obs-browser-source.cpp
Line 652 in 082a0a2
All works correctly, but i think, that this code and
linear_sample
needed for somethingI am interested in fixing this bug and can create a PR, but I need advice on which direction to take next.
The text was updated successfully, but these errors were encountered: