Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
OpenGL ES 2.0 中是否有用于设置混合 alpha 值限制的混合方法?我想实现这样的效果:纹理在相互叠加时正常混合,直到达到 alpha 限制,此时混合的 alpha 值将停止增加。
我能够使用以下方法实现此效果:
glBlendColor(0, 0, 0, 1-myLimit); glBlendFunc(GL_ONE_MINUS_CONSTANT_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
似乎达到了预期的效果。