public final void init(final GLAutoDrawable drawable) { Debug.print(); final GL gl = drawable.getGL(); gl.glEnable(GL.GL_DEPTH_TEST); TextureManager.clear(); }
private void renderBlending(Geoset geoset, GL gl) { if (geoset != null) { final Material material = geoset.getMaterial(); for (final Layer layer : material.getLayers()) { if (layer.getFilterMode() >= 2) { layer.enable(gl); final Texture texture = TextureManager.getTexture(layer.getTextureInfo()); if (texture != null) { texture.enable(); texture.bind(); } renderTriangles(gl, geoset); if (texture != null) texture.disable(); layer.disable(gl); } } } }