相关疑难解决方法(0)

Pre Z缓冲区通过OpenGL?

我怎样才能使用openGL进行Z缓冲预处理.

我试过这个:

glcolormask(0,0,0,0); //disable color buffer

//draw scene

glcolormask(1,1,1,1); //reenable color buffer

//draw scene

//flip buffers
Run Code Online (Sandbox Code Playgroud)

但它不起作用.这样做后我什么都没看到.有什么更好的方法呢?

谢谢

c c++ opengl

8
推荐指数
1
解决办法
2672
查看次数

标签 统计

c ×1

c++ ×1

opengl ×1