未画出OpenGL混合墙

时间:2014-02-09 18:49:49

标签: c++ opengl blending

我的opengl程序中有blendng问题 enter image description here

我知道它是因为红墙是在蓝墙前绘制的,但这是我的问题,我必须检查哪一面墙靠近相机,或者这是更快的方法。

如果我关闭deph测试有这样的问题 enter image description here 在红色之前画了黄墙

0 个答案:

没有答案