Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Antialiasing in SDF #12

Open
xiaoiver opened this issue Nov 20, 2024 · 1 comment
Open

Antialiasing in SDF #12

xiaoiver opened this issue Nov 20, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@xiaoiver
Copy link
Owner

Screenshot 2024-11-20 at 11 48 51
@xiaoiver xiaoiver added the bug Something isn't working label Nov 20, 2024
@xiaoiver xiaoiver self-assigned this Nov 20, 2024
@prestonbourne
Copy link

prestonbourne commented Dec 4, 2024

I also noticed this issue.

it seems like it originates from the g-device-api library, https://stackoverflow.com/questions/11343820/webgl-semi-transparent-appears-white

Here is the culprit: https://github.com/antvis/g-device-api/blob/f5aea083fa23b0f293eab27264294e61c4c83a6f/src/webgl/WebGLDeviceContribution.ts#L26

I'll open a PR in this repo but i'm curious to learn what would be better. changing the default setting here? or changing the default in the HAL

EDIT:
Can't build locally due to some cryptic python dependency error? So I won't bother with the PR but I repro'd and changing the premultipliedAlpha seemed to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants