-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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?
The text was updated successfully, but these errors were encountered: