Different Alpha blending in P2D and P3D
in
Programming Questions
•
1 year ago
- void setup() {
- //size(100, 100, P2D);
- size(100, 100, OPENGL);
- hint(DISABLE_DEPTH_TEST);
- }
- void draw() {
- background(127);
- line(0, 0, 100, 100);
- rect(20, 20, 40, 40);
- }
If I use the P2D renderer the black diagonal line is covered by the last draw rectangle. If I use P3D or OPENGL, the diagonal line is not covered even though I use hint(DISABLE_DEPTH_TEST); How can I recreate the rendering settings of P2D in P3D or OPENGL?
Thanks
1