-
Notifications
You must be signed in to change notification settings - Fork 6
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
Degenerate triangle show up on some devices #5
Comments
Ah, the existence of these on the no-caps test suggests it's a result of degenerate triangles still resulting in a couple rasterized pixels. I think they should be degenerate to within floating point accuracy, so maybe this is just the way it works. https://rreusser.github.io/regl-gpu-lines/docs/tests.html#miter/insert-caps/none Only seems to happen for endpoint caps. Full opacity or depth testing are not subject to the problem. Backface culling cuts it in half. |
In version 1.0.0, iOS 15 Safari shows some overlapping pixels where caps meet segments. I'm not sure what's causing this, unless maybe triangle strips require knowledge that it's a triangle strip in order to avoid? I thought as long as the tris met floating-point-correctly that the GPU had some magic way to get this right.
At any rate it's not a blocker and there are bigger self-intersection issues with transparent lines anyway, but it'd be nice to understand.
The text was updated successfully, but these errors were encountered: