mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
WIP of shifting the skylight cubemap to be packed into the cubemap array
This commit is contained in:
parent
27b304eec3
commit
b40d33a663
4 changed files with 63 additions and 90 deletions
|
|
@ -638,8 +638,7 @@ void ReflectionProbe::processBakedCubemap()
|
|||
mProbeInfo->mIsEnabled = true;
|
||||
|
||||
//Update the probe manager with our new texture!
|
||||
if (!mProbeInfo->mIsSkylight)
|
||||
PROBEMGR->updateProbeTexture(mProbeInfo->mProbeIdx);
|
||||
PROBEMGR->updateProbeTexture(mProbeInfo->mProbeIdx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -730,8 +729,7 @@ void ReflectionProbe::processStaticCubemap()
|
|||
mProbeInfo->mIsEnabled = true;
|
||||
|
||||
//Update the probe manager with our new texture!
|
||||
if (!mProbeInfo->mIsSkylight)
|
||||
PROBEMGR->updateProbeTexture(mProbeInfo->mProbeIdx);
|
||||
PROBEMGR->updateProbeTexture(mProbeInfo->mProbeIdx);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -739,7 +737,7 @@ bool ReflectionProbe::createClientResources()
|
|||
{
|
||||
if (mProbeInfo == nullptr)
|
||||
{
|
||||
mProbeInfo = PROBEMGR->registerProbe(mProbeShapeType == ProbeRenderInst::Skylight);
|
||||
mProbeInfo = PROBEMGR->registerProbe();
|
||||
if (!mProbeInfo)
|
||||
return false;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue