Skip to content

Commit 91a2bff

Browse files
committed
Fix dark bug
1 parent bb4264e commit 91a2bff

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

include/item.def

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ITEM_DEF(int, APP_H, 480)
33
ITEM_DEF(int, CAM_W, 640)
44
ITEM_DEF(int, CAM_H, 480)
55
ITEM_DEF(bool, REF_VISIBLE, false)
6-
ITEM_DEF(bool, FACE_SUB_VISIBLE, true)
6+
ITEM_DEF(bool, FACE_VFX_VISIBLE, true)
77
ITEM_DEF(bool, WIREFRAME_MODE, false)
88
ITEM_DEF(bool, MOVIE_MODE, false)
99
ITEM_DEF(string, MOVIE_PATH, "tutorial_part5_02.mov")

src/FaceOffApp.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void FaceOff::update()
307307
mFaceMesh.appendPosition(vec3(mOnlineTracker->getImagePoint(i), 0));
308308
}
309309

310-
if (FACE_SUB_VISIBLE && mRefTex)
310+
if (FACE_VFX_VISIBLE && mRefTex)
311311
{
312312
//gl::setMatricesWindow(getWindowSize(), false);
313313
// TODO: merge these two passes w/ MRTs
@@ -369,7 +369,7 @@ void FaceOff::draw()
369369
APP_H * 0.5f + adaptiveCamH * 0.5f
370370
};
371371

372-
if (FACE_SUB_VISIBLE)
372+
if (FACE_VFX_VISIBLE)
373373
{
374374
// gl::ScopedModelMatrix modelMatrix;
375375
// gl::scale(APP_W / (float)CAM_W, APP_H / (float)CAM_H);
@@ -381,6 +381,10 @@ void FaceOff::draw()
381381
{
382382
gl::draw(mClone.getResultTexture(), srcArea, dstRect);
383383
}
384+
else
385+
{
386+
gl::draw(mCapture.texture, srcArea, dstRect);
387+
}
384388
}
385389
else
386390
{

0 commit comments

Comments
 (0)