mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
OpenGL blending - fixed SUBTRACT
O = D - (S * SA) now matches Java2D
This commit is contained in:
@@ -6025,7 +6025,7 @@ public class PGraphicsOpenGL extends PGraphics {
|
||||
} else if (blendMode == SUBTRACT) {
|
||||
if (blendEqSupported) {
|
||||
pgl.blendEquation(PGL.FUNC_REVERSE_SUBTRACT);
|
||||
pgl.blendFunc(PGL.ONE, PGL.SRC_ALPHA);
|
||||
pgl.blendFunc(PGL.SRC_ALPHA, PGL.ONE);
|
||||
} else {
|
||||
PGraphics.showWarning(BLEND_DRIVER_ERROR, "SUBTRACT");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user