Commit 716ad63a authored by Matthias Betz's avatar Matthias Betz
Browse files

Keep highlight markers filled in wireframe mode



glPolygonMode(GL_LINE) for wireframe applied to the sphere-impostor point
quads too, drawing them as outlines. Reset to GL_FILL after the scene mesh so
wireframe affects only the geometry; highlight points/edges stay filled.

Co-Authored-By: default avatarClaude Opus 4.8 <noreply@anthropic.com>
parent 1f893749
......@@ -196,6 +196,8 @@ public class GLViewport {
sceneProgram.use(gl);
gl.glUniformMatrix4fv(sceneProgram.uniform(gl, "uMVP"), 1, false, mvp, 0);
scene.draw(gl);
// wireframe applies to the geometry only; highlight markers always render filled
gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL3.GL_FILL);
// edge markers reuse the flat scene program (pos + colour)
overlay.drawLines(gl, lineScale);
// vertex markers use the sphere-impostor program (geometry shader -> camera-facing quads)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment