New answers tagged opengl-es
Surprisingly, glLineWidth() makes points larger too: GLES20.glLineWidth(8); // Make the edges (and points!) thicker GLES20.glDrawArrays(GLES20.GL_POINTS, 0, 38);// 38 is number of my vertexes
I hope I can make this clear, but basically you need to make a stencil of both objects as if they are both selected, then only keep the areas in the bounding box of the item you actually want to highlight. So basically you make one stencil buffer of both objects selected (or all objects that occlude the object, really...but I would not worry about those ...
If you zoom the second image - you can see that green square rendered twice and on it to, so probably you have two draw calls for your green square...
I haven't thought about this for too long. But it seems fairly simple. I assume you know what the modelViewMatrix is. This 4x4 matrix transforms coordinates (points) from world space to camera space. There is a similar matrix called the normalMatrix that transforms vectors (usually normalvectors). It does the same as the modelViewMatrix, but skips all ...
Top 50 recent answers are included