I have this code that basically just fills in a single triangle of my mesh when the mouse hovers over it, but it’s kinda ugly. How can I make the edges of this triangle glow in and out instead of this ugly white fill.
I’m thinking I change GL.GL_FILL to GL.GL_LINE, but then, how do I get the lines to have a thick glowing effect?
gl.glPolygonMode(GL.GL_FRONT_AND_BACK, GL.GL_FILL);
gl.glColor3f(1.0f, 1.0f, 1.0f);
// ...
gl.glVertexPointer(3, GL.GL_FLOAT, 0, elementsBuffer[idx]);
gl.glDrawElements(GL.GL_TRIANGLES, 3, GL.GL_UNSIGNED_INT, indicesBuffer[idx]);