not working together

This commit is contained in:
micuat 2020-10-18 18:12:13 +02:00
parent ab4a1b8d5a
commit 1292560f26

View file

@ -59,6 +59,7 @@ void ofApp::draw()
if (kinectDevice.isStreaming())
{
ofDisableDepthTest();
auto tex = kinectDevice.getDepthTex();
boundShader.setUniformTexture("u_depth", tex);
boundShader.setUniform1i("u_init", 1);
@ -68,7 +69,6 @@ void ofApp::draw()
boundShader.render();
}
boundShader.draw(0, 0);
return;
cam.begin();
ofEnableDepthTest();