JayceLi |
|
||
2012年5月3日
摘要:
现在来看看的blending效果。blending分为Additive blending,Multiplicative blending和Interpolative blending。 对应的方法分别为glBlendFunc(GL_ONE, GL_ONE),glBlendFunc(GL_DST_COLOR, GL_ZERO)和glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)。现在就用Additive blending来写个例子。这里的GLSurfaceView要处理点击消息来开启和关闭blending效果,所以单独提取一个类。Test6Surf 阅读全文
|
Copyright © 2024 JayceLi
Powered by .NET 8.0 on Kubernetes |