not working together
This commit is contained in:
parent
ab4a1b8d5a
commit
1292560f26
1 changed files with 1 additions and 1 deletions
|
@ -59,6 +59,7 @@ void ofApp::draw()
|
||||||
|
|
||||||
if (kinectDevice.isStreaming())
|
if (kinectDevice.isStreaming())
|
||||||
{
|
{
|
||||||
|
ofDisableDepthTest();
|
||||||
auto tex = kinectDevice.getDepthTex();
|
auto tex = kinectDevice.getDepthTex();
|
||||||
boundShader.setUniformTexture("u_depth", tex);
|
boundShader.setUniformTexture("u_depth", tex);
|
||||||
boundShader.setUniform1i("u_init", 1);
|
boundShader.setUniform1i("u_init", 1);
|
||||||
|
@ -68,7 +69,6 @@ void ofApp::draw()
|
||||||
boundShader.render();
|
boundShader.render();
|
||||||
}
|
}
|
||||||
boundShader.draw(0, 0);
|
boundShader.draw(0, 0);
|
||||||
return;
|
|
||||||
|
|
||||||
cam.begin();
|
cam.begin();
|
||||||
ofEnableDepthTest();
|
ofEnableDepthTest();
|
||||||
|
|
Loading…
Reference in a new issue