mirror of
https://github.com/open-goal/jak-project
synced 2026-09-02 10:11:44 -04:00
[jak2] Work-in-progress texture animations (#2819)
This commit is contained in:
@@ -85,7 +85,7 @@ void add_all_textures_from_level(tfrag3::Level& lev,
|
||||
new_tex.w = tex.w;
|
||||
new_tex.h = tex.h;
|
||||
new_tex.debug_tpage_name = tex_db.tpage_names.at(tex.page);
|
||||
new_tex.debug_name = new_tex.debug_tpage_name + tex.name;
|
||||
new_tex.debug_name = tex.name;
|
||||
new_tex.data = tex.rgba_bytes;
|
||||
new_tex.combo_id = id;
|
||||
new_tex.load_to_pool = true;
|
||||
@@ -241,6 +241,11 @@ void extract_common(const ObjectFileDB& db,
|
||||
add_all_textures_from_level(tfrag_level, dgo_name, tex_db);
|
||||
extract_art_groups_from_level(db, tex_db, {}, dgo_name, tfrag_level);
|
||||
|
||||
// put _all_ index textures in common.
|
||||
for (const auto& [id, tex] : tex_db.index_textures_by_combo_id) {
|
||||
tfrag_level.index_textures.push_back(tex);
|
||||
}
|
||||
|
||||
Serializer ser;
|
||||
tfrag_level.serialize(ser);
|
||||
auto compressed =
|
||||
|
||||
Reference in New Issue
Block a user