fix way too much z-offset used for roof outline

This commit is contained in:
Hannes Janetzek 2013-01-17 12:09:02 +01:00
parent 38239cd615
commit 9705811f7b

View File

@ -293,7 +293,7 @@ public class ExtrusionOverlay extends RenderOverlay {
// drawing gl_lines with the same coordinates does not result in // drawing gl_lines with the same coordinates does not result in
// same depth values as polygons, so add offset and draw gl_lequal: // same depth values as polygons, so add offset and draw gl_lequal:
GLES20.glDepthFunc(GLES20.GL_LEQUAL); GLES20.glDepthFunc(GLES20.GL_LEQUAL);
GlUtils.addOffsetM(mv, 1000); GlUtils.addOffsetM(mv, 100);
GLES20.glUniformMatrix4fv(uExtMatrix, 1, false, mv, 0); GLES20.glUniformMatrix4fv(uExtMatrix, 1, false, mv, 0);
GLES20.glUniform1i(uExtMode, 3); GLES20.glUniform1i(uExtMode, 3);