Skip to content

WebGL spine defaults to different blend func than native #3402

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

Merged
merged 1 commit into from
Nov 4, 2016

Conversation

DavidDeSimone
Copy link
Contributor

@DavidDeSimone DavidDeSimone commented Nov 3, 2016

Native spine skeleton renderer will default to blend func GL_ONE/GL_ONE_MINUS_SRC_ALPHA or GL_SRC_ALPHA/GL_ONE_MINUS_SRC_ALPHA, if none are provided. This differs from web, which would just use the nodes blend func. This commit brings web into parity with native.

The issue is described in detail here: cocos2d/cocos2d-x#16786

My fix for now is to bring web into parity with native, by making web behave the same as native. If we would rather do the opposite, I will close this PR and submit one to spine.

…, or GL_SRC_ALPHA/GL_ONE_MINUS_SRC_ALPHA, if none are provided. This differs from web, which would just use the nodes blend func. This commit brings web into parity with native
@DavidDeSimone DavidDeSimone changed the title Native spine will default to blend func GL_ONE/GL_ONE_MINUS_SRC_ALPHA WebGL spine defaults to different blend func than native Nov 3, 2016
@pandamicro
Copy link
Contributor

Thanks for noticing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants