如果我有两个重叠的三角形,每个三角形都是灰色的(0.1,0.1,0.1,0.1),我该如何设置glBlendFunc,使重叠的部分比不重叠的部分呈现得更亮(更接近白色)?
发布于 2011-05-28 03:28:36
你可以这样设置你的glBlendFunc:
glEnable(GL_BLEND);
glBlendFunc(GL_ONE, GL_ONE);这将给出一个混合方程,其中output_color =1* source_color +1* destination_color。
另请参阅此documentation。
https://stackoverflow.com/questions/6156791
复制相似问题