mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-27 16:19:34 +00:00
Removes Direct3D9 functionality.
This commit is contained in:
parent
5ac6f6beb3
commit
edd1e0a270
86 changed files with 382 additions and 10445 deletions
|
|
@ -42,14 +42,6 @@ void ScreenSpace::RenderTargetParameters(const Point3I &targetSize, const RectI
|
|||
Point2F targetScale( (F32)targetViewport.extent.x / (F32)targetSize.x,
|
||||
(F32)targetViewport.extent.y / (F32)targetSize.y );
|
||||
|
||||
const bool hasTexelPixelOffset = GFX->getAdapterType() == Direct3D9;
|
||||
|
||||
// Get the target half pixel size.
|
||||
const Point2F halfPixel( hasTexelPixelOffset ? (0.5f / targetSize.x) : 0.0f,
|
||||
hasTexelPixelOffset ? (0.5f / targetSize.y) : 0.0f );
|
||||
|
||||
rtParams.set( targetOffset.x + halfPixel.x,
|
||||
targetOffset.y + halfPixel.y,
|
||||
targetScale.x,
|
||||
targetScale.y );
|
||||
rtParams.set( targetOffset.x, targetOffset.y, targetScale.x, targetScale.y );
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue