Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Is there anyway to use Subtract blend mode? #5255
Comments
|
Can you not use a mask to remove the additive sprite from certain areas? |
|
I think params for subtract are You can make custom blendmode However, pixi webglstate does not change blend function: Lets patch it and bring everything together: https://www.pixiplayground.com/#/edit/6c0X5xaWa2MMy6vXfIix0 TA-DA! P.S. Really? I didnt notice that ticket for 5 days? |
|
Though, it doesnt help with your plan, because SUBTRACT does not subtract alpha. Change second FUNC_ADD to FUNC_REVERSE_SUBTRACT and it'll work just fine. |
|
Maybe that's for your case: |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |

I'm trying to create color overlay effects, except certain area on the screen.
My plan was to cover whole screen as ADD Blendmode with color of my choice,
and remove effect from certain area by applying SUBTRACT Blendmode with the same color used in ADD Blendmode.
But It seems there's no Subtract Blendmode in pixi v4.
Is there any workaround I can try?
or can I implement custom blend mode in pixi v4?