Thx for your answers. How can I use GL_ARB_geometry_shader4? When I use
System.out.println("is GL_ARB_geometry_shader4 available? - " + gl.isExtensionAvailable("GL_ARB_geometry_shader4")); I get true as an answer ;). But I don't know what to do from there.
In my current shader abstraction I do something like this:
if (vertexFile != null) {
this.vertexShader = new ShaderObject(gl, GL2.GL_VERTEX_SHADER, vertexFile);
}
if (fragmentFile != null) {
this.fragmentShader = new ShaderObject(gl, GL2.GL_FRAGMENT_SHADER, fragmentFile);
}