-
Notifications
You must be signed in to change notification settings - Fork 438
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
Added support for shaders in FlxStrip and FlxDrawTrianglesItem #2671
Conversation
Thanks for the example, I'll try to get to this soon |
looks like it's failing on flash. You don't need to go out of your way to make this feature work in flash, but you do need to use |
Alright, I added in those checks |
thanks, will check this manually soon |
This rules! Thanks, UncertainProd. This was my edited test example: |
This pr adds support for shaders with the FlxStrip class.
When I was working with the FlxStrip class I noticed that setting its shader property or alpha property did not have any effect on it, while it did work on regular FlxSprites. It looks like it's because FlxCamera.drawTriangles does not take in any parameters related to them, so I added those in this pr.
Example code:
When I tested this on windows and html5 it worked