Add Particle Radius to in-built particle attributes

This commit is contained in:
Wojtek Figat
2021-03-05 14:33:31 +01:00
parent dbc88af339
commit dd1dd2ef8a
8 changed files with 44 additions and 0 deletions

View File

@@ -286,6 +286,12 @@ void ParticleEmitterGraphCPUExecutor::ProcessGroupParticles(Box* box, Node* node
const float lifetime = GET_PARTICLE_ATTRIBUTE(1, float);
value = age / Math::Max(lifetime, ZeroTolerance);
break;
}
// Particle Radius
case 111:
{
value = GET_PARTICLE_ATTRIBUTE(0, float);
break;
}
// Effect Position
case 200: