Skip to content
Discussion options

You must be logged in to vote

Thank you for providing ideas and direction. After trying, the problem should be solved, and the cause of the grid line flicker issue has also been identified, which was caused by Z-fighting. The current gridline effect does not meet expectations, and I am trying to customize shaders to achieve it. Currently, there are still issues with transparency, and I am still researching. The overall effect is very good.
The rendering logic is adjusted as follows
`

_wxGlCanvas->SetCurrent(*_wxGlContext);

_framebuffer.bind();
_framebuffer.setViewport(_framebuffer.viewport()); 
_framebuffer
.clearColor(0, Color3{ 0.125f })
.clearColor(1, Vector4ui{})
.clearDepth(1.0f)
.bind();

GL::Renderer::enable(G…

Replies: 6 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@fenggy
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by fenggy
Comment options

You must be logged in to vote
1 reply
@fenggy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants