mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 21:58:48 +00:00
VideoCommon: Move bounding box pixel quads rounding to shader
This avoids rounding values that the game writes to the bounding box registers, especially the default values.
This commit is contained in:
parent
37d0559493
commit
e4aef0a85b
3 changed files with 20 additions and 18 deletions
|
@ -838,8 +838,10 @@ void Tev::Draw()
|
|||
EfbInterface::IncPerfCounterQuadCount(PQ_ZCOMP_OUTPUT);
|
||||
}
|
||||
|
||||
BoundingBox::Update(static_cast<u16>(Position[0]), static_cast<u16>(Position[0]),
|
||||
static_cast<u16>(Position[1]), static_cast<u16>(Position[1]));
|
||||
// The GC/Wii GPU rasterizes in 2x2 pixel groups, so bounding box values will be rounded to the
|
||||
// extents of these groups, rather than the exact pixel.
|
||||
BoundingBox::Update(static_cast<u16>(Position[0] & ~1), static_cast<u16>(Position[0] | 1),
|
||||
static_cast<u16>(Position[1] & ~1), static_cast<u16>(Position[1] | 1));
|
||||
|
||||
#if ALLOW_TEV_DUMPS
|
||||
if (g_ActiveConfig.bDumpTevStages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue