mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
WIP hook-in of the cubemap array.
Also inversed probe transforms to make them correct.
This commit is contained in:
parent
c0e8b047f5
commit
5b7e2edb66
4 changed files with 53 additions and 22 deletions
|
|
@ -574,8 +574,8 @@ void ReflectionProbe::processStaticCubemap()
|
|||
IBLUtilities::SaveCubeMap(getPrefilterMapPath(), mPrefilterMap->mCubemap);
|
||||
}
|
||||
|
||||
mProbeInfo->mCubemap = &mPrefilterMap->mCubemap;
|
||||
mProbeInfo->mIrradianceCubemap = &mIrridianceMap->mCubemap;
|
||||
mProbeInfo->mCubemap = mPrefilterMap->mCubemap;
|
||||
mProbeInfo->mIrradianceCubemap = mIrridianceMap->mCubemap;
|
||||
}
|
||||
|
||||
void ReflectionProbe::updateMaterial()
|
||||
|
|
@ -588,17 +588,17 @@ void ReflectionProbe::updateMaterial()
|
|||
{
|
||||
if (mPrefilterMap != nullptr && mPrefilterMap->mCubemap.isValid())
|
||||
{
|
||||
mProbeInfo->mCubemap = &mPrefilterMap->mCubemap;
|
||||
mProbeInfo->mCubemap = mPrefilterMap->mCubemap;
|
||||
}
|
||||
if (mIrridianceMap != nullptr && mIrridianceMap->mCubemap.isValid())
|
||||
{
|
||||
mProbeInfo->mIrradianceCubemap = &mIrridianceMap->mCubemap;
|
||||
mProbeInfo->mIrradianceCubemap = mIrridianceMap->mCubemap;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (mReflectionModeType == DynamicCubemap && !mDynamicCubemap.isNull())
|
||||
{
|
||||
mProbeInfo->mCubemap = &mDynamicCubemap;
|
||||
mProbeInfo->mCubemap = mDynamicCubemap;
|
||||
}
|
||||
|
||||
if (mBrdfTexture.isValid())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue