Merge branch 'main' into visuals-restoration

This commit is contained in:
MihailRis 2025-12-18 18:59:37 +03:00
commit 30e014fce1
5 changed files with 11 additions and 10 deletions

View file

@ -103,6 +103,7 @@ void Emitter::update(
glm::vec3 spawnOffset = generate_coord(preset.spawnShape);
spawnOffset *= preset.spawnSpread;
spawnOffset += preset.spawnOffset;
particle.position = position + spawnOffset;
particle.lifetime *= 1.0f - preset.lifetimeSpread * random.randFloat();