Drawing lines on the screen on WorldRenderEvents.LAST
When I enable shaders, lines rendering works with below code (but it looks like my lines are affected by postprocessing shaders):
var buffer = Tesselator.getInstance().getBuilder();buffer.begin(VertexFormat.Mode.DEBUG_LINES, DefaultVertexFormat.POSITION_COLOR);buffer.vertex(x, y, z).color(r, g, b, a).endVertex();// other vertexesvertexBuffer.drawWithShader(modelViewMatrix, projectionMatrix, GameRenderer.getPositionColorShader());VertexBuffer.unbind();
var buffer = Tesselator.getInstance().getBuilder();buffer.begin(VertexFormat.Mode.DEBUG_LINES, DefaultVertexFormat.POSITION_COLOR);buffer.vertex(x, y, z).color(r, g, b, a).endVertex();// other vertexesvertexBuffer.drawWithShader(modelViewMatrix, projectionMatrix, GameRenderer.getPositionColorShader());VertexBuffer.unbind();
However when I use my own custom lines renderer with my own shaders - nothing is rendered. It is very basic code with compiling shaders, creating program, VBO/VAO, uploading buffer,