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

LineMaterial: Fix clipping at edge artifacts #27349

Merged
merged 2 commits into from
Dec 11, 2023

Conversation

gkjohnson
Copy link
Collaborator

@gkjohnson gkjohnson commented Dec 10, 2023

Fixed #26916

Description

This PR recomputes the quad positions for world unit Line2 so it properly encapsulates the capsule. Here's an example of a case with a line at a skewed position that would have been clipped off previously.

image

Demo: https://raw.githack.com/gkjohnson/three.js/line-world-unit-fix/examples/webgl_lines_fat.html

@gkjohnson gkjohnson added this to the r160 milestone Dec 10, 2023
@Mugen87 Mugen87 merged commit ca7261b into mrdoob:dev Dec 11, 2023
11 checks passed
@gkjohnson gkjohnson deleted the line-world-unit-fix branch December 11, 2023 10:17
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* Fix containing cube

* Sceenshot update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LinesSegments with World Units have Visible Artifacts from Various Angles (Fat Lines Example)
2 participants