mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-24 16:10:14 +00:00
Add tiled particle atlas support
This commit is contained in:
parent
866877cad0
commit
a71902a571
4 changed files with 101 additions and 15 deletions
|
|
@ -696,6 +696,11 @@ M2Model M2Loader::load(const std::vector<uint8_t>& m2Data) {
|
|||
em.texture = readValue<uint16_t>(m2Data, base + 0x16);
|
||||
em.blendingType = readValue<uint8_t>(m2Data, base + 0x28);
|
||||
em.emitterType = readValue<uint8_t>(m2Data, base + 0x29);
|
||||
em.textureTileRotation = readValue<int16_t>(m2Data, base + 0x2E);
|
||||
em.textureRows = readValue<uint16_t>(m2Data, base + 0x30);
|
||||
em.textureCols = readValue<uint16_t>(m2Data, base + 0x32);
|
||||
if (em.textureRows == 0) em.textureRows = 1;
|
||||
if (em.textureCols == 0) em.textureCols = 1;
|
||||
|
||||
// Parse animated tracks (M2TrackDisk at known offsets)
|
||||
auto parseTrack = [&](uint32_t off, M2AnimationTrack& track) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue