Skip to content

Fix orbit line jitter when they cross the camera near plane#414

Open
Phantomical wants to merge 1 commit into
KSPModdingLibs:masterfrom
Phantomical:fix-vectorline-nearplane-clip
Open

Fix orbit line jitter when they cross the camera near plane#414
Phantomical wants to merge 1 commit into
KSPModdingLibs:masterfrom
Phantomical:fix-vectorline-nearplane-clip

Conversation

@Phantomical

Copy link
Copy Markdown
Collaborator

Vectrocity has a bug where floating point precision causes it to occasionally place a point behind the near clip plane when it shouldn't. This results in visible flickering.

We fix this by overriding VectorLine.IntersectAndDoSkip with a version that uses the cached double precision worldToClip matrix. That has enough precision to avoid the issue.

Vectrocity has a bug where floating point precision causes it to
occasionally place a point behind the near clip plane when it shouldn't.
This results in visible flickering.

We fix this by overriding VectorLine.IntersectAndDoSkip with a version
that uses the cached double precision worldToClip matrix. That has
enough precision to avoid the issue.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant