Exemplo n.º 1
0
  public final void init(final GLAutoDrawable drawable) {
    Debug.print();
    final GL gl = drawable.getGL();
    gl.glEnable(GL.GL_DEPTH_TEST);

    TextureManager.clear();
  }
Exemplo n.º 2
0
  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);
        }
      }
    }
  }