mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-05-03 08:03:50 +00:00
Add tiled particle atlas support
This commit is contained in:
parent
d179f20126
commit
752e3dc80a
4 changed files with 101 additions and 15 deletions
|
|
@ -146,6 +146,9 @@ struct M2ParticleEmitter {
|
|||
uint16_t texture;
|
||||
uint8_t blendingType; // 0=opaque,1=alphakey,2=alpha,4=add
|
||||
uint8_t emitterType; // 1=plane,2=sphere,3=spline
|
||||
int16_t textureTileRotation = 0;
|
||||
uint16_t textureRows = 1;
|
||||
uint16_t textureCols = 1;
|
||||
M2AnimationTrack emissionSpeed;
|
||||
M2AnimationTrack speedVariation;
|
||||
M2AnimationTrack verticalRange;
|
||||
|
|
|
|||
|
|
@ -90,6 +90,7 @@ struct M2Particle {
|
|||
float life; // current age in seconds
|
||||
float maxLife; // total lifespan
|
||||
int emitterIndex; // which emitter spawned this
|
||||
float tileIndex = 0.0f; // texture atlas tile index
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue