mirror of
https://github.com/open-goal/jak-project
synced 2026-06-08 20:29:54 -04:00
c476b84182
Two new flags were added to the Blender plugin to allow reusing the mod and/or eye draws of the original model that is being replaced. Works pretty well for eyes, but the blerc draws can cause some Z-fighting with the non-moving parts of the model. Also a small refactor to the merc replacement code to de-duplicate some code by moving stuff to `gltf_util.cpp`.
24 lines
912 B
C++
24 lines
912 B
C++
#pragma once
|
|
|
|
#include "common/log/log.h"
|
|
#include "common/util/gltf_util.h"
|
|
|
|
namespace decompiler {
|
|
|
|
gltf_util::MercSwapData load_replacement_merc_model(
|
|
tfrag3::MercModel& mdl,
|
|
u32 current_idx_count,
|
|
u32 current_vtx_count,
|
|
u32 current_tex_count,
|
|
const std::string& path,
|
|
const std::vector<tfrag3::MercVertex>& old_verts,
|
|
bool custom_mdl);
|
|
|
|
gltf_util::MercSwapData load_custom_merc_model(const std::string& name,
|
|
u32 current_idx_count,
|
|
u32 current_vtx_count,
|
|
u32 current_tex_count,
|
|
const std::string& path,
|
|
const std::vector<tfrag3::MercVertex>& old_verts,
|
|
bool custom_mdl);
|
|
} // namespace decompiler
|