parent
d5845fe3e7
commit
d4254538d1
|
|
@ -10390,6 +10390,17 @@
|
|||
<key>Value</key>
|
||||
<integer>0</integer>
|
||||
</map>
|
||||
<key>RenderHeroProbeResolution</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
<string>Resolution to render hero probes used for mirrors, water, etc.</string>
|
||||
<key>Persist</key>
|
||||
<integer>1</integer>
|
||||
<key>Type</key>
|
||||
<string>S32</string>
|
||||
<key>Value</key>
|
||||
<integer>512</integer>
|
||||
</map>
|
||||
<key>RenderReflectionProbeVolumes</key>
|
||||
<map>
|
||||
<key>Comment</key>
|
||||
|
|
|
|||
|
|
@ -106,7 +106,6 @@ void LLHeroProbeManager::update()
|
|||
|
||||
{
|
||||
LL_PROFILE_ZONE_NAMED_CATEGORY_DISPLAY("rmmu - realtime");
|
||||
|
||||
// Probe 0 is always our mirror probe. Probe N - 1 is our water probe.
|
||||
mProbes[0]->mOrigin.load3(LLViewerCamera::instance().mOrigin.mV);
|
||||
for (U32 j = 0; j < mProbes.size(); j++)
|
||||
|
|
@ -311,8 +310,6 @@ void LLHeroProbeManager::updateProbeFace(LLReflectionMap* probe, U32 face)
|
|||
}
|
||||
|
||||
mMipChain[0].flush();
|
||||
|
||||
gIrradianceGenProgram.unbind();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -466,7 +463,6 @@ void LLHeroProbeManager::cleanup()
|
|||
mMipChain.clear();
|
||||
|
||||
mTexture = nullptr;
|
||||
mIrradianceMaps = nullptr;
|
||||
|
||||
mProbes.clear();
|
||||
|
||||
|
|
|
|||
|
|
@ -2443,26 +2443,6 @@ void LLPipeline::doOcclusion(LLCamera& camera)
|
|||
|
||||
gGL.setColorMask(true, true);
|
||||
}
|
||||
|
||||
if (sReflectionProbesEnabled && sUseOcclusion > 1 && !LLPipeline::sShadowRender && !gCubeSnapshot)
|
||||
{
|
||||
gGL.setColorMask(false, false);
|
||||
LLGLDepthTest depth(GL_TRUE, GL_FALSE);
|
||||
LLGLDisable cull(GL_CULL_FACE);
|
||||
|
||||
gOcclusionCubeProgram.bind();
|
||||
|
||||
if (mCubeVB.isNull())
|
||||
{ //cube VB will be used for issuing occlusion queries
|
||||
mCubeVB = ll_create_cube_vb(LLVertexBuffer::MAP_VERTEX);
|
||||
}
|
||||
mCubeVB->setBuffer();
|
||||
|
||||
mHeroProbeManager.doOcclusion();
|
||||
gOcclusionCubeProgram.unbind();
|
||||
|
||||
gGL.setColorMask(true, true);
|
||||
}
|
||||
|
||||
if (LLPipeline::sUseOcclusion > 1 &&
|
||||
(sCull->hasOcclusionGroups() || LLVOCachePartition::sNeedsOcclusionCheck))
|
||||
|
|
|
|||
Loading…
Reference in New Issue