mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-13 03:33:48 +00:00
Direct3D11 Engine/source changes
This commit is contained in:
parent
3a9b50f702
commit
41e5caf22b
81 changed files with 1291 additions and 617 deletions
|
|
@ -248,8 +248,18 @@ GFXTextureObject* ReflectionManager::getRefractTex( bool forceUpdate )
|
|||
const U32 desWidth = targetSize.x;
|
||||
const U32 desHeight = targetSize.y;
|
||||
#else
|
||||
const U32 desWidth = mFloor( (F32)targetSize.x * smRefractTexScale );
|
||||
const U32 desHeight = mFloor( ( F32)targetSize.y * smRefractTexScale );
|
||||
U32 desWidth, desHeight;
|
||||
// D3D11 needs to be the same size as the active target
|
||||
if (GFX->getAdapterType() == Direct3D11)
|
||||
{
|
||||
desWidth = targetSize.x;
|
||||
desHeight = targetSize.y;
|
||||
}
|
||||
else
|
||||
{
|
||||
desWidth = mFloor((F32)targetSize.x * smRefractTexScale);
|
||||
desHeight = mFloor((F32)targetSize.y * smRefractTexScale);
|
||||
}
|
||||
#endif
|
||||
|
||||
if ( mRefractTex.isNull() ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue