Add world axis lines with brighter styling for origin grid lines #137
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds special styling for grid lines that pass through the origin (world axis lines) to make them stand out as reference lines, bringing ImPlot3D's visual behavior in line with ImPlot.
Problem
ImPlot3D currently only distinguishes between minor and major grid lines (with 0.3 and 0.6 alpha respectively), but lacks the special highlighting for lines passing through the origin that ImPlot provides. This makes it harder to visually identify the coordinate system's origin in 3D plots.
Before (ImPlot3D):

Reference (ImPlot):

Solution
The implementation adds a third visual tier for grid lines:
Implementation Details
1e-8f
of zero (consistent with other coordinate comparisons in the codebase)RenderGrid
functionTesting
The world axis lines will be most visible in plots where axis ranges span across the origin, providing clear visual reference to the coordinate system center.
Fixes #108.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.