Skip to content
Snippets Groups Projects
Commit 8f83724f authored by David Parks's avatar David Parks
Browse files

DRTVWR-559 WIP -- Kill debug text on probes (whoops)

parent 19f7497d
No related branches found
No related tags found
2 merge requests!3Update to main branch,!2Rebase onto current main branch
......@@ -271,10 +271,6 @@ void LLReflectionMap::doOcclusion(const LLVector4a& eye)
if (o.getLength3().getF32() < dist)
{ // eye is inside radius, don't attempt to occlude
mOccluded = false;
if (mViewerObject)
{
mViewerObject->setDebugText("Camera Non-Occluded");
}
return;
}
......@@ -298,10 +294,6 @@ void LLReflectionMap::doOcclusion(const LLVector4a& eye)
else
{
mOcclusionPendingFrames++;
if (mViewerObject)
{
mViewerObject->setDebugText(llformat("Query Pending - %d", mOcclusionPendingFrames));
}
}
}
......@@ -312,17 +304,11 @@ void LLReflectionMap::doOcclusion(const LLVector4a& eye)
LLGLSLShader* shader = LLGLSLShader::sCurBoundShaderPtr;
shader->uniform3fv(LLShaderMgr::BOX_CENTER, 1, mOrigin.getF32ptr());
F32 r = mRadius + 0.25f; // pad by 1/4m for near clip plane etc
shader->uniform3f(LLShaderMgr::BOX_SIZE, mRadius, mRadius, mRadius);
gPipeline.mCubeVB->drawRange(LLRender::TRIANGLE_FAN, 0, 7, 8, get_box_fan_indices(LLViewerCamera::getInstance(), mOrigin));
glEndQuery(GL_ANY_SAMPLES_PASSED);
if (mViewerObject)
{
mViewerObject->setDebugText(llformat("Query Issued - %.2f, %.2f, %.2f", o.getLength3().getF32(), dist, mRadius));
}
}
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment