EvilEngine/MAPR: Difference between revisions
no edit summary
No edit summary |
EnergyDrink (talk | contribs) No edit summary |
||
(2 intermediate revisions by 2 users not shown) | |||
Line 4:
{{#vardefine:type|[[Binary]]}}<nowiki/>
{{#vardefine:basetype|}}<nowiki/>
{{#vardefine:games|Scooby BFBB TSSM Incredibles ROTU RatProto}}<nowiki/>
{{#vardefine:sourcecode|[https://github.com/bfbbdecomp/bfbb/blob/master/src/Game/zSurface.h zSurface.h]}}<nowiki/>
{{#vardefine:image|}}<nowiki/>
Line 13:
==Format==
The asset data starts with the asset ID, then an int which defines the amount of entries in the MAPR table, then the entries themselves.
===zMaterialMapAsset===
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[AssetID]]
|-
| 0x04 || uint || '''count''' || Amount of entries.
| 0x04 || int || '''Unknown''' - this is likely an index into the JSP to choose which mesh the effect will be applied to.▼
|}
====zMaterialMapEntry====
{| class="wikitable"
! Offset !! Type !! Variable !! Description
|-
| 0x00 || [[AssetID]] || '''surfaceAssetID''' || Asset ID of Surface to be applied
|-
▲| 0x04 ||
|}
|