Hide M2 particle emitter volumes rendering as grey boxes

M2 models like OrgrimmarFloatingEmbers and OrgrimmarSmokeEmitter have a
simple box mesh (24 verts, 36 indices) meant only to define particle
emitter bounds. Their blendMode was 0 (opaque), causing them to render
as large grey boxes. Detect these by checking for box geometry with
particle emitters and large bounds (>5 units), then mark as invisible.
Also add ANTIPORTAL and batch-disable flag checks to WMO group filtering.
This commit is contained in:
Kelsi 2026-02-16 19:50:35 -08:00
parent 1cfe186c62
commit 6dd811a926
3 changed files with 23 additions and 3 deletions

View file

@ -426,6 +426,8 @@ bool WMOLoader::loadGroup(const std::vector<uint8_t>& groupData,
}
// Read MOGP header
// NOTE: In WMO group files, the MOGP data starts directly at flags
// (groupName/descriptiveGroupName are handled by the root WMO's MOGI chunk).
uint32_t mogpOffset = offset;
group.flags = read<uint32_t>(groupData, mogpOffset);
bool isInterior = (group.flags & 0x2000) != 0;