Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Default renderer resets blend mode between setup() and draw() #4376
@JakubValtar , I wrote jsundram/render_all_blend_modes.pyde to run through all the blend modes for all of the renderers, and make 3 different graphics, so you can see where they differ. There are a bunch of differences between P2D/P3D and Java2D, although P2D and P3D appear to be the same everywhere (I didn't do any pixel diffing, just eyeballing). Weirdly, the subtract issue that I raised above doesn't show up -- maybe you can look at my code and see why?
And btw, thanks for making the comparison. You see differences because DIFFERENCE, HARD_LIGHT, SOFT_LIGHT, OVERLAY, DODGE, and BURN modes are supported only in the default renderer (you are supposed to get an error message when you try to set unsupported mode). I revised and optimised all modes last year and I'm fairly confident they do what they should.