|
Gdx.gl.glEnable(GL20.GL_BLEND); Gdx.gl.glBlendFunc(GL20.GL_SRC_ALPHA, GL20.GL_ONE_MINUS_SRC_ALPHA); hudRenderer.begin();
compile files('/home/jefferycl/libgdx-1.9.5/dist/gdx-backend-gwt.jar') compile files('/home/jefferycl/libgdx-1.9.5/dist/sources/gdx-sources.jar')and in project(":core")
compile files('/home/jefferycl/libgdx-1.9.5/dist/gdx.jar')
Matrix4 uiMatrix = camera.combined.cpy(); uiMatrix.setToOrtho2D(0,0,camwidth,camheight); ... hudRenderer.setProjectionMatrix(uiMatrix); hudRenderer.begin();...
Linux firefox | no |
Linux chrome | yes |
Windows chrome | yes |
Windows IE | yes |
in setup() I first enabled: glEnable(GL_CULL_FACE); Then I did this: front.getTextureReference().bind(); glFrontFace(GL_CW); glCullFace(GL_FRONT); frontMesh.draw(); front.getTextureReference().unbind(); back.getTextureReference().bind(); glCullFace(GL_BACK); frontMesh.draw(); back.getTextureReference().unbind();