[jak2] add vortex renderer (#2441)

Add the vortex renderer. The vortex texture isn't there yet (it uses the
same texture as clouds), so it uses a checkerboard. But the
colors/vertices seem right.
This commit is contained in:
water111
2023-03-29 20:28:48 -04:00
committed by GitHub
parent 4f6b6e4c82
commit 976e08fe97
15 changed files with 6171 additions and 10 deletions
+2 -2
View File
@@ -435,7 +435,7 @@ std::vector<SpoolSubtitleRange> process_spool_subtitles(ObjectFileData& data,
}
std::string write_spool_subtitles(
GameTextVersion version,
GameTextVersion,
const fs::path& image_out,
const std::unordered_map<std::string, std::vector<SpoolSubtitleRange>>& data) {
// write!
@@ -469,7 +469,7 @@ std::string write_spool_subtitles(
if (dump_images) {
std::vector<u32> rgba_out;
rgba_out.resize(msg.w * msg.h);
for (int px = 0; px < rgba_out.size(); ++px) {
for (int px = 0; px < (int)rgba_out.size(); ++px) {
int idx = px & 1 ? msg.data[px / 2] >> 4 : msg.data[px / 2] & 0xf;
rgba_out.at(px) = msg.palette[idx];
}