mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-03-06 14:00:39 +00:00
enhanced-particle -- Accounts for larger number of particle size keys.
This commit is contained in:
parent
6910ee584d
commit
169e539e47
3 changed files with 123 additions and 23 deletions
|
|
@ -24,6 +24,7 @@
|
|||
// Arcane-FX for MIT Licensed Open Source version of Torque 3D from GarageGames
|
||||
// Copyright (C) 2015 Faust Logic, Inc.
|
||||
//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~//~~~~~~~~~~~~~~~~~~~~~//
|
||||
|
||||
#include "platform/platform.h"
|
||||
#include "T3D/debris.h"
|
||||
|
||||
|
|
@ -633,7 +634,8 @@ bool Debris::onAdd()
|
|||
{
|
||||
sizeList[0] = mSize * 0.5;
|
||||
sizeList[1] = mSize;
|
||||
sizeList[2] = mSize * 1.5;
|
||||
for (U32 i = 2; i < ParticleData::PDC_NUM_KEYS; i++)
|
||||
sizeList[i] = mSize * 1.5;
|
||||
|
||||
mEmitterList[0]->setSizes( sizeList );
|
||||
}
|
||||
|
|
@ -642,7 +644,8 @@ bool Debris::onAdd()
|
|||
{
|
||||
sizeList[0] = 0.0;
|
||||
sizeList[1] = mSize * 0.5;
|
||||
sizeList[2] = mSize;
|
||||
for (U32 i = 2; i < ParticleData::PDC_NUM_KEYS; i++)
|
||||
sizeList[i] = mSize;
|
||||
|
||||
mEmitterList[1]->setSizes( sizeList );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue