Jogl: How to make a transparent background on com.jogamp.opengl.swt.GLCanvas?
问题 I searched & read multiple forums about openGL transparency and I found this piece of code gl.glEnable(GL2.GL_BLEND); gl.glBlendFunc(GL2.GL_SRC_ALPHA, GL2.GL_ONE_MINUS_SRC_ALPHA); gl.glEnable(GL2.GL_ALPHA_TEST); gl.glAlphaFunc(GL2.GL_GREATER, 0.1f); gl.glClearColor(0, 0, 0, 0); Some people wrote this code inside the init method and got result. I really don't know anymore about Blending, but I added this code and nothing happened! Is there any mistake or misunderstanding here!? How can I do