mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-13 07:34:45 +00:00
Merge pull request #1553 from Azaezel/MRTMangle
turns out independent sized render targets was causing lighting artif…
This commit is contained in:
commit
1d5a22cfea
1 changed files with 4 additions and 1 deletions
|
|
@ -153,10 +153,13 @@ bool RenderPrePassMgr::_updateTargets()
|
||||||
}
|
}
|
||||||
|
|
||||||
GFXFormat colorFormat = mTargetFormat;
|
GFXFormat colorFormat = mTargetFormat;
|
||||||
|
|
||||||
|
/*
|
||||||
bool independentMrtBitDepth = GFX->getCardProfiler()->queryProfile("independentMrtBitDepth", false);
|
bool independentMrtBitDepth = GFX->getCardProfiler()->queryProfile("independentMrtBitDepth", false);
|
||||||
//If independent bit depth on a MRT is supported than just use 8bit channels for the albedo color.
|
//If independent bit depth on a MRT is supported than just use 8bit channels for the albedo color.
|
||||||
if(independentMrtBitDepth)
|
if(independentMrtBitDepth)
|
||||||
colorFormat = GFXFormatR8G8B8A8;
|
colorFormat = GFXFormatR8G8B8A8;
|
||||||
|
*/
|
||||||
|
|
||||||
// andrewmac: Deferred Shading Color Buffer
|
// andrewmac: Deferred Shading Color Buffer
|
||||||
if (mColorTex.getFormat() != colorFormat || mColorTex.getWidthHeight() != mTargetSize || GFX->recentlyReset())
|
if (mColorTex.getFormat() != colorFormat || mColorTex.getWidthHeight() != mTargetSize || GFX->recentlyReset())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue