mirror of
https://github.com/RetroDECK/Supermodel.git
synced 2024-11-25 23:25:40 +00:00
gm_mathew - the line scroll values, the top 16bits are the even lines, the bottom 16bits are the odd lines. We had it swapped. This fixes the number below the word results in daytona, when you finish a game.
This commit is contained in:
parent
acab274526
commit
8fea5bd3bf
|
@ -151,7 +151,7 @@ static const char s_fragmentShaderTileGen[] = R"glsl(
|
|||
int GetLineScrollValue(int layerNum, int yCoord)
|
||||
{
|
||||
int index = ((0xF6000 + (layerNum * 0x400)) / 4) + (yCoord / 2);
|
||||
int shift = (yCoord % 2) * 16; // double check this
|
||||
int shift = (1 - (yCoord % 2)) * 16;
|
||||
|
||||
ivec2 coords = GetVRamCoords(index);
|
||||
return int((texelFetch(vram,coords,0).r >> shift) & 0xFFFFu);
|
||||
|
|
Loading…
Reference in a new issue