mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-21 15:43:45 +00:00
fix dynamicCubemaps on objects
This commit is contained in:
parent
e5aa6e4a95
commit
824b9a9cd5
5 changed files with 15 additions and 13 deletions
|
|
@ -329,7 +329,8 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
|
|||
if (String::compare(LIGHTMGR->getId(), "BLM") == 0)
|
||||
{
|
||||
fd.features.addFeature(MFT_ForwardShading);
|
||||
fd.features.addFeature(MFT_ReflectionProbes);
|
||||
if (!mMaterial->mDynamicCubemap)
|
||||
fd.features.addFeature(MFT_ReflectionProbes);
|
||||
}
|
||||
|
||||
// Disabling the InterlacedDeferred feature for now. It is not ready for prime-time
|
||||
|
|
@ -357,7 +358,8 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
|
|||
if (mMaterial->isTranslucent())
|
||||
{
|
||||
fd.features.addFeature(MFT_RTLighting);
|
||||
fd.features.addFeature(MFT_ReflectionProbes);
|
||||
if (!mMaterial->mDynamicCubemap)
|
||||
fd.features.addFeature(MFT_ReflectionProbes);
|
||||
}
|
||||
|
||||
if ( mMaterial->mAnimFlags[stageNum] )
|
||||
|
|
@ -369,7 +371,7 @@ void ProcessedShaderMaterial::_determineFeatures( U32 stageNum,
|
|||
// cubemaps only available on stage 0 for now - bramage
|
||||
if ( stageNum < 1 && mMaterial->isTranslucent() &&
|
||||
( ( mMaterial->mCubemapData && mMaterial->mCubemapData->mCubemap ) ||
|
||||
mMaterial->mDynamicCubemap ) && !features.hasFeature(MFT_ReflectionProbes))
|
||||
mMaterial->mDynamicCubemap ) /*&& !features.hasFeature(MFT_ReflectionProbes) */ )
|
||||
{
|
||||
fd.features.addFeature( MFT_CubeMap );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue