mirror of
https://github.com/blawar/GLideN64.git
synced 2024-07-04 10:03:36 +00:00
Shift S2DEX background texture coordinates in non-native resolutions.
This commit is contained in:
parent
865e9b443e
commit
e0d5b0be7b
|
@ -502,6 +502,13 @@ struct ObjCoordinates
|
||||||
lrs = uls + (lrx - ulx) * scaleW;
|
lrs = uls + (lrx - ulx) * scaleW;
|
||||||
lrt = ult + (lry - uly) * scaleH;
|
lrt = ult + (lry - uly) * scaleH;
|
||||||
|
|
||||||
|
if (config.frameBufferEmulation.nativeResFactor != 1 || config.video.multisampling != 0) {
|
||||||
|
uls -= 0.5f * scaleW;
|
||||||
|
ult -= 0.5f * scaleH;
|
||||||
|
lrs -= 0.5f * scaleW;
|
||||||
|
lrt -= 0.5f * scaleH;
|
||||||
|
}
|
||||||
|
|
||||||
// G_CYC_COPY (BgRectCopyOnePiece()) does not allow texture filtering
|
// G_CYC_COPY (BgRectCopyOnePiece()) does not allow texture filtering
|
||||||
if (gDP.otherMode.cycleType != G_CYC_COPY) {
|
if (gDP.otherMode.cycleType != G_CYC_COPY) {
|
||||||
// Correct texture coordinates if G_OBJRM_BILERP
|
// Correct texture coordinates if G_OBJRM_BILERP
|
||||||
|
|
Loading…
Reference in New Issue
Block a user