mirror of
https://github.com/open-goal/jak-project
synced 2026-07-09 23:01:56 -04:00
[jak3] Update texture remap table (#3821)
Fix for https://github.com/open-goal/jak-project/issues/3820 Jak 2 and 3 use this annoying trick where they store multiple images in the same texture by just changing the CLUT. This breaks some PC code because those two textures will have the same TBP address. so there's a table of remaps to fix this, generated by the decompiler. Unfortunately, I generated that table before the decompiler loaded the .STR file with these textures, so it was missing the remaps. This is automatically generated in the texture folder when you run the decompiler - I just copied it to the C++ file.   Co-authored-by: water111 <awaterford1111445@gmail.com>
This commit is contained in:
@@ -33,6 +33,18 @@ const std::unordered_map<int, std::vector<std::pair<int, int>>> data = {
|
||||
{17, 3},
|
||||
{4, 1}}},
|
||||
{13, {{21, 1}, {23, 2}, {24, 3}, {46, 1}, {47, 2}, {39, 1}, {40, 2}}},
|
||||
{17,
|
||||
{{56, 1},
|
||||
{42, 1},
|
||||
{44, 2},
|
||||
{46, 3},
|
||||
{51, 2},
|
||||
{52, 3},
|
||||
{48, 1},
|
||||
{49, 2},
|
||||
{40, 1},
|
||||
{53, 2},
|
||||
{59, 3}}},
|
||||
{125, {{17, 1}, {18, 2}, {19, 3}, {23, 1}}},
|
||||
{127,
|
||||
{{36, 1},
|
||||
@@ -2032,9 +2044,9 @@ const std::unordered_map<int, std::vector<std::pair<int, int>>> data = {
|
||||
{98, 1}, {99, 2}, {101, 3}, {94, 1}, {96, 2}}},
|
||||
{3416, {{44, 1}, {46, 2}, {48, 1}, {28, 1}}},
|
||||
{3417, {{3, 1}, {4, 2}, {5, 3}, {6, 4}}},
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
int lookup_jak3_texture_dest_offset(int tpage, int texture_idx) {
|
||||
auto it = data.find(tpage);
|
||||
|
||||
Reference in New Issue
Block a user