How to port old PGraphicsOpenGL code to Processing 2 alpha - Additive Blending
in
Core Library Questions
•
2 years ago
Hi,
I would like to know how to port this piece of code to the new Processing 2 alpha, it is the basic additive blending trick
- pgl.beginGL();
- gl.glDisable(GL.GL_DEPTH_TEST);
- gl.glEnable(GL.GL_BLEND);
- gl.glBlendFunc(GL.GL_SRC_ALPHA, GL.GL_ONE);
- pgl.endGL();
For some reason this is not taking any effect on my sketch everything looks sharp pixelated and no blending, any ideas?
1