Skip to content
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

[Feature Request] 在ExSprite一级支持除alpha blend外的更多blend模式 #39

Open
xw0 opened this issue Oct 9, 2013 · 2 comments

Comments

@xw0
Copy link

xw0 commented Oct 9, 2013

特别是Additive模式,平时用得比较多(DstColor = BackColor + SrcColor * SrcAlpha)。

谢谢 :)

@jareguo
Copy link
Contributor

jareguo commented Oct 9, 2013

我们会加入Additive的shader,每个sprite可以设置单独的shader。不过这实际上会被layer拆分成至少2个mesh进行渲染,因为底层没办法在运行时动态转换贴图的预乘和非预乘状态。

@xw0
Copy link
Author

xw0 commented Oct 9, 2013

没错。对于每种blending模式/不同的shader增加一个draw call是必然的。

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

No branches or pull requests

2 participants