new Union API bringup
This MR integrates Gratt's new UnionAPI into ArmorParts, it's essentially bringup on par to union-template.
- Some parts of the code were significantly simplified
- 3 platforms are supported: G1, G2A and G2O (G2A and G2O is one dll, you can compile pure G2A if you remove
SCRAT_EXPORT) - DX11 detection was axed as it's not needed anymore
- Reduce the call count = better performance
- [Breaking change] Flagging for
wearwas changed from 16 to 64, because there was collision with VFXes on G2A:
//You need to adjust those flags as this is breaking change!!!
//Default:
//CONST INT WEAR_TORSO = 1;
//CONST INT WEAR_HEAD = 2; // This will place "visual" statically at the "Bip01 Head" node, the problem is that it's not softskin, so the materials don't have the same properties as normal armor (you can't have shiny helmets when you're using this flag for example) - Please rerig your helmet as softskin .asc file and assign it to WEAR_HOOD :)
//CONST INT WEAR_LIGHT = 8; // Probably light spell object is placed here?
//CONST INT WEAR_EFFECT = 16; // G2A, oCVisualFX on softskins
//ArmorParts module:
CONST INT WEAR_ARMS = 64;
CONST INT WEAR_LEGS = 128;
CONST INT WEAR_HOOD = 256;
CONST INT WEAR_SLD = 512;
CONST INT WEAR_CLOAK = 1024;
CONST INT MY_CUSTOM_WEAR_FLAG = 2048; // Yes, you can add your own custom new flags for new parts too
Edited by Shouη